X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fstdendian.h;h=2fc569ce4d44581f9c3429b8e998974c68d1d929;hb=31a6a3da431cf9a09d986a888289e29f3b453a0b;hp=f84a03dccfa2d5492167053fa2d68f7c54cd23a5;hpb=34471c08182f3ea9f977d8cea1e8934e59e01ef4;p=collectd.git 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)))