summaryrefslogtreecommitdiffstats
path: root/StdLib/Include/Arm/machine/endian_machdep.h
diff options
context:
space:
mode:
Diffstat (limited to 'StdLib/Include/Arm/machine/endian_machdep.h')
-rw-r--r--StdLib/Include/Arm/machine/endian_machdep.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/StdLib/Include/Arm/machine/endian_machdep.h b/StdLib/Include/Arm/machine/endian_machdep.h
new file mode 100644
index 0000000000..abe2b406ed
--- /dev/null
+++ b/StdLib/Include/Arm/machine/endian_machdep.h
@@ -0,0 +1,8 @@
+/* $NetBSD: endian_machdep.h,v 1.8 2006/01/30 21:52:38 dsl Exp $ */
+
+/* GCC predefines __ARMEB__ when building for big-endian ARM. */
+#ifdef __ARMEB__
+#define _BYTE_ORDER _BIG_ENDIAN
+#else
+#define _BYTE_ORDER _LITTLE_ENDIAN
+#endif