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.
1 parent 804eb23 commit d836090Copy full SHA for d836090
compat/compat.h.in
@@ -26,7 +26,13 @@
26
# include <alloca.h>
27
#endif
28
29
-#include <byteswap.h>
+#if defined(__APPLE__) || defined(_WIN32)
30
+# define bswap_32 __builtin_bswap32
31
+# define bswap64 __builtin_bswap64
32
+#else
33
+# include <byteswap.h>
34
+#endif
35
+
36
#include <limits.h>
37
#include <pthread.h>
38
#include <stdarg.h>
0 commit comments