From f9c85b87cfe7cfdfe6f71b626b494b776e92a0a6 Mon Sep 17 00:00:00 2001 From: Dagobert Michelsen Date: Thu, 5 Apr 2018 10:49:30 +0200 Subject: [PATCH] Fix gcc issue on Mac byteorder --- src/stdendian.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stdendian.h b/src/stdendian.h index f84a03dc..2fc569ce 100644 --- a/src/stdendian.h +++ b/src/stdendian.h @@ -173,7 +173,7 @@ /* handle missing __builtin_bswap16 * https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52624 */ #if defined __GNUC__ -/* define bswap16(x) __builtin_bswap16(x) */ +#define bswap16(x) __builtin_bswap16(x) #else #define bswap16(x) \ ((uint16_t)((((uint16_t)(x)&0xff00) >> 8) | (((uint16_t)(x)&0x00ff) << 8))) -- 2.11.0