summaryrefslogtreecommitdiff
path: root/Libraries
diff options
context:
space:
mode:
authorร˜rjan Malde <red@foxi.me>2019-11-16 16:07:12 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-11-16 16:27:48 +0100
commita55fb98d0a6a52c1531bbbd02b3bd7a8b95d00fb (patch)
tree03cfbd1b185e40da5bbdcd6978c29b76220a0c4f /Libraries
parentfaff1361c36bcb93156468c497d1b5c21a340071 (diff)
downloadserenity-a55fb98d0a6a52c1531bbbd02b3bd7a8b95d00fb.zip
LibC: fix arpa/inet.h guards
Diffstat (limited to 'Libraries')
-rw-r--r--Libraries/LibC/arpa/inet.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Libraries/LibC/arpa/inet.h b/Libraries/LibC/arpa/inet.h
index ccb2650436..435bb1c59b 100644
--- a/Libraries/LibC/arpa/inet.h
+++ b/Libraries/LibC/arpa/inet.h
@@ -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;