mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:37:35 +00:00
LibC: fix arpa/inet.h guards
This commit is contained in:
parent
faff1361c3
commit
a55fb98d0a
1 changed files with 2 additions and 2 deletions
|
@ -13,7 +13,7 @@ int inet_pton(int af, const char* src, void* dst);
|
|||
|
||||
inline uint16_t htons(uint16_t value)
|
||||
{
|
||||
#if BYTE_ORDER == LITTLE_ENDIAN
|
||||
#if __BYTE_ORDER == __LITTLE_ENDIAN
|
||||
return __builtin_bswap16(value);
|
||||
#else
|
||||
return value;
|
||||
|
@ -27,7 +27,7 @@ inline uint16_t ntohs(uint16_t value)
|
|||
|
||||
inline uint32_t htonl(uint32_t value)
|
||||
{
|
||||
#if BYTE_ORDER == LITTLE_ENDIAN
|
||||
#if __BYTE_ORDER == __LITTLE_ENDIAN
|
||||
return __builtin_bswap32(value);
|
||||
#else
|
||||
return value;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue