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