]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
Fix gcc issue on Mac byteorder 2788/head
authorDagobert Michelsen <dam@opencsw.org>
Thu, 5 Apr 2018 08:49:30 +0000 (10:49 +0200)
committerPavel Rochnyack <pavel2000@ngs.ru>
Mon, 21 May 2018 05:03:31 +0000 (12:03 +0700)
src/stdendian.h

index f84a03dccfa2d5492167053fa2d68f7c54cd23a5..2fc569ce4d44581f9c3429b8e998974c68d1d929 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)))