]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
byteorder: more typos
authorSage Weil <sage@newdream.net>
Fri, 9 Oct 2009 22:15:13 +0000 (15:15 -0700)
committerSage Weil <sage@newdream.net>
Fri, 9 Oct 2009 22:15:34 +0000 (15:15 -0700)
src/include/byteorder.h

index ba2eb6a83183f1aec9f834224acaa66de68733d4..304ed5ee755a475ff74b4e53a38d6f9c4391fd34 100644 (file)
@@ -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)