mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-23 09:46:04 -05:00
LibC: fix arpa/inet.h guards
This commit is contained in:
parent
faff1361c3
commit
a55fb98d0a
Notes:
sideshowbarker
2024-07-19 11:11:33 +09:00
Author: https://github.com/Redfoxymoon Commit: https://github.com/SerenityOS/serenity/commit/a55fb98d0a6 Pull-request: https://github.com/SerenityOS/serenity/pull/789
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
Reference in a new issue