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 81375d0604e8f8d8ce9492a9c9fafd8617480ff9..5bf205794783e41236bcd71e174d8c700f77c842 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)