From: Sage Weil Date: Fri, 9 Oct 2009 22:15:13 +0000 (-0700) Subject: byteorder: more typos X-Git-Tag: v0.17~98 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=31ab2334b95b3f5b8e13f72602159768033b183a;p=ceph.git byteorder: more typos --- diff --git a/src/include/byteorder.h b/src/include/byteorder.h index ba2eb6a83183..304ed5ee755a 100644 --- a/src/include/byteorder.h +++ b/src/include/byteorder.h @@ -33,11 +33,14 @@ static __inline__ __u64 swab64(__u64 val) } // mswab == maybe swab (if not LE) -#if __BYTEORDER == __BIG_ENDIAN +#if __BYTE_ORDER == __BIG_ENDIAN # define mswab64(a) swab64(a) # define mswab32(a) swab32(a) # define mswab16(a) swab16(a) #else +# if __BYTE_ORDER != __LITTLE_ENDIAN +# warning __BYTE_ORDER is not defined, assuming little endian +# endif # define mswab64(a) (a) # define mswab32(a) (a) # define mswab16(a) (a)