We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6debfc0 + 5626ce4 commit 2cb875eCopy full SHA for 2cb875e
include/compat/endian.h
@@ -62,7 +62,7 @@
62
#endif
63
64
65
-#if defined(__APPLE__) && !defined(HAVE_ENDIAN_H)
+#if defined(__APPLE__)
66
#include <libkern/OSByteOrder.h>
67
#define be16toh(x) OSSwapBigToHostInt16((x))
68
#define htobe16(x) OSSwapHostToBigInt16((x))
@@ -74,7 +74,7 @@
74
#define htobe64(x) OSSwapHostToBigInt64(x)
75
#define le64toh(x) OSSwapLittleToHostInt64(x)
76
#define be64toh(x) OSSwapBigToHostInt64(x)
77
-#endif /* __APPLE__ && !HAVE_ENDIAN_H */
+#endif /* __APPLE__ */
78
79
#if defined(_WIN32) && !defined(HAVE_ENDIAN_H)
80
#include <winsock2.h>
0 commit comments