Skip to content

Commit 2cb875e

Browse files
committed
Land #1130 - add endianness functions for apple
2 parents 6debfc0 + 5626ce4 commit 2cb875e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/compat/endian.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
#endif
6363
#endif
6464

65-
#if defined(__APPLE__) && !defined(HAVE_ENDIAN_H)
65+
#if defined(__APPLE__)
6666
#include <libkern/OSByteOrder.h>
6767
#define be16toh(x) OSSwapBigToHostInt16((x))
6868
#define htobe16(x) OSSwapHostToBigInt16((x))
@@ -74,7 +74,7 @@
7474
#define htobe64(x) OSSwapHostToBigInt64(x)
7575
#define le64toh(x) OSSwapLittleToHostInt64(x)
7676
#define be64toh(x) OSSwapBigToHostInt64(x)
77-
#endif /* __APPLE__ && !HAVE_ENDIAN_H */
77+
#endif /* __APPLE__ */
7878

7979
#if defined(_WIN32) && !defined(HAVE_ENDIAN_H)
8080
#include <winsock2.h>

0 commit comments

Comments
 (0)