1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 03:27:45 +00:00

LibC: fix arpa/inet.h guards

This commit is contained in:
Ørjan Malde 2019-11-16 16:07:12 +01:00 committed by Andreas Kling
parent faff1361c3
commit a55fb98d0a

View file

@ -13,7 +13,7 @@ int inet_pton(int af, const char* src, void* dst);
inline uint16_t htons(uint16_t value) inline uint16_t htons(uint16_t value)
{ {
#if BYTE_ORDER == LITTLE_ENDIAN #if __BYTE_ORDER == __LITTLE_ENDIAN
return __builtin_bswap16(value); return __builtin_bswap16(value);
#else #else
return value; return value;
@ -27,7 +27,7 @@ inline uint16_t ntohs(uint16_t value)
inline uint32_t htonl(uint32_t value) inline uint32_t htonl(uint32_t value)
{ {
#if BYTE_ORDER == LITTLE_ENDIAN #if __BYTE_ORDER == __LITTLE_ENDIAN
return __builtin_bswap32(value); return __builtin_bswap32(value);
#else #else
return value; return value;