fix endianess bug inside libbklid-tiny
authorJohn Crispin <blogic@openwrt.org>
Fri, 28 Jun 2013 13:38:18 +0000 (15:38 +0200)
committerJohn Crispin <blogic@openwrt.org>
Fri, 28 Jun 2013 13:38:18 +0000 (15:38 +0200)
Signed-off-by: John Crispin <blogic@openwrt.org>
libblkid-tiny/bitops.h

index 81375d0..5bf2057 100644 (file)
@@ -46,7 +46,7 @@
                (uint64_t)(((uint64_t)(x) & (uint64_t)0xff00000000000000ULL) >> 56) ))
 
 
-#ifdef WORDS_BIGENDIAN
+#if __BYTE_ORDER == __BIG_ENDIAN
 
 #define cpu_to_le16(x) swab16(x)
 #define cpu_to_le32(x) swab32(x)