aboutsummaryrefslogtreecommitdiffstats
path: root/tools/include/byteswap.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/include/byteswap.h')
-rw-r--r--tools/include/byteswap.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/include/byteswap.h b/tools/include/byteswap.h
new file mode 100644
index 0000000..015f097
--- /dev/null
+++ b/tools/include/byteswap.h
@@ -0,0 +1,5 @@
+#if defined(__linux__) || defined(__CYGWIN__)
+#include_next <byteswap.h>
+#else
+#include <endian.h>
+#endif