diff --git a/src/fwrite_le.c b/src/fwrite_le.c index 748de52..e470124 100644 --- a/src/fwrite_le.c +++ b/src/fwrite_le.c @@ -3,7 +3,7 @@ #define ORDER_NATIVE_U32 0x01234567 #define ORDER_LITTLE_ENDIAN_S4 "\x67\x45\x23\x01" #define ORDER_BIG_ENDIAN_S4 "\x01\x23\x45\x67" -#define ifeq_b32_ret(lhs, rhs, value) if (!memcmp(lhs, rhs, 4)) return value; +#define ifeq_b32_ret(lhs, rhs, value) if (!memcmp(lhs, rhs, 4)) return value int detect_endianness(void) { volatile uint32_t native_order_value = ORDER_NATIVE_U32;