From: John Crispin Date: Fri, 28 Jun 2013 13:38:18 +0000 (+0200) Subject: fix endianess bug inside libbklid-tiny X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f58e5e1a927dd37ba951d0bee4d63c5949bc8f0d;p=oweals%2Fubox.git fix endianess bug inside libbklid-tiny Signed-off-by: John Crispin --- diff --git a/libblkid-tiny/bitops.h b/libblkid-tiny/bitops.h index 81375d0..5bf2057 100644 --- a/libblkid-tiny/bitops.h +++ b/libblkid-tiny/bitops.h @@ -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)