From f58e5e1a927dd37ba951d0bee4d63c5949bc8f0d Mon Sep 17 00:00:00 2001 From: John Crispin Date: Fri, 28 Jun 2013 15:38:18 +0200 Subject: [PATCH] fix endianess bug inside libbklid-tiny Signed-off-by: John Crispin --- libblkid-tiny/bitops.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.30.2