]> git.proxmox.com Git - mirror_edk2.git/blobdiff - StdLib/Include/Arm/machine/endian_machdep.h
StdLib: Patches and updates for ARM.
[mirror_edk2.git] / StdLib / Include / Arm / machine / endian_machdep.h
diff --git a/StdLib/Include/Arm/machine/endian_machdep.h b/StdLib/Include/Arm/machine/endian_machdep.h
new file mode 100644 (file)
index 0000000..abe2b40
--- /dev/null
@@ -0,0 +1,8 @@
+/* $NetBSD: endian_machdep.h,v 1.8 2006/01/30 21:52:38 dsl Exp $ */\r
+\r
+/* GCC predefines __ARMEB__ when building for big-endian ARM. */\r
+#ifdef __ARMEB__\r
+#define _BYTE_ORDER _BIG_ENDIAN\r
+#else\r
+#define _BYTE_ORDER _LITTLE_ENDIAN\r
+#endif\r