Merge pull request #2741 from dago/mac
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Thu, 5 Apr 2018 17:05:32 +0000 (19:05 +0200)
committerGitHub <noreply@github.com>
Thu, 5 Apr 2018 17:05:32 +0000 (19:05 +0200)
Fix gcc issue on Mac byteorder

src/stdendian.h

index f84a03d..2fc569c 100644 (file)
 /* 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)))