X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fstdendian.h;h=f84a03dccfa2d5492167053fa2d68f7c54cd23a5;hb=a4db31342f22ac33831874bab420831b25d31d66;hp=4d32b156c3c7789cae2ad133d0cab6d78cf17cbb;hpb=969d1078bb7db51a81738711ff9623faa3cd6292;p=collectd.git diff --git a/src/stdendian.h b/src/stdendian.h index 4d32b156..f84a03dc 100644 --- a/src/stdendian.h +++ b/src/stdendian.h @@ -211,7 +211,7 @@ /* Host swap macros */ #ifndef __HOSTSWAP_DEFINED -#if __BYTE_ORDER == __LITTLE_ENDIAN +#if _BYTE_ORDER == _LITTLE_ENDIAN #define htobe16(x) bswap16((x)) #define htole16(x) ((uint16_t)(x)) #define be16toh(x) bswap16((x)) @@ -226,7 +226,7 @@ #define htole64(x) ((uint64_t)(x)) #define be64toh(x) bswap64((x)) #define le64toh(x) ((uint64_t)(x)) -#elif __BYTE_ORDER == __BIG_ENDIAN +#elif _BYTE_ORDER == _BIG_ENDIAN #define htobe16(x) ((uint16_t)(x)) #define htole16(x) bswap16((x)) #define be16toh(x) ((uint16_t)(x))