summaryrefslogtreecommitdiff
path: root/na/include/libc-shim/endian.h
diff options
context:
space:
mode:
Diffstat (limited to 'na/include/libc-shim/endian.h')
-rw-r--r--na/include/libc-shim/endian.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/na/include/libc-shim/endian.h b/na/include/libc-shim/endian.h
new file mode 100644
index 0000000..8346386
--- /dev/null
+++ b/na/include/libc-shim/endian.h
@@ -0,0 +1,9 @@
+/* Shim: endianness for musl string functions */
+#ifndef _ENDIAN_H
+#define _ENDIAN_H
+
+#define __LITTLE_ENDIAN 1234
+#define __BIG_ENDIAN 4321
+#define __BYTE_ORDER __LITTLE_ENDIAN /* RISC-V is LE */
+
+#endif