summaryrefslogtreecommitdiffstats
path: root/libc/arch-arm/include/endian.h
diff options
context:
space:
mode:
Diffstat (limited to 'libc/arch-arm/include/endian.h')
-rw-r--r--libc/arch-arm/include/endian.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/libc/arch-arm/include/endian.h b/libc/arch-arm/include/endian.h
new file mode 100644
index 0000000..04204ed
--- /dev/null
+++ b/libc/arch-arm/include/endian.h
@@ -0,0 +1,10 @@
+/* $OpenBSD: endian.h,v 1.3 2005/12/13 00:35:23 millert Exp $ */
+
+#ifdef __ARMEB__
+#define _BYTE_ORDER _BIG_ENDIAN
+#else
+#define _BYTE_ORDER _LITTLE_ENDIAN
+#endif
+#define __STRICT_ALIGNMENT
+#include <sys/types.h>
+#include <sys/endian.h>