aboutsummaryrefslogtreecommitdiff
path: root/system/include/libc
diff options
context:
space:
mode:
authorJeff Terrace <jterrace@gmail.com>2012-01-04 15:41:22 -0500
committerJeff Terrace <jterrace@gmail.com>2012-01-04 15:41:22 -0500
commitc82ae679a5ec1fc29e493a8b6f6672500a223772 (patch)
tree7a2ae74bf143284bf43bf507365c55a7cf65b4d6 /system/include/libc
parentc4ff5f2c3b51f52c226809a14a56a888f673efd1 (diff)
Add additional defines to endian.h
Diffstat (limited to 'system/include/libc')
-rw-r--r--system/include/libc/machine/endian.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/system/include/libc/machine/endian.h b/system/include/libc/machine/endian.h
index 07ebc8f6..cec97a7b 100644
--- a/system/include/libc/machine/endian.h
+++ b/system/include/libc/machine/endian.h
@@ -9,6 +9,13 @@
#define LITTLE_ENDIAN 1234
#endif
+#ifndef __LITTLE_ENDIAN
+#define __LITTLE_ENDIAN LITTLE_ENDIAN
+#endif
+#ifndef __BIG_ENDIAN
+#define __BIG_ENDIAN BIG_ENDIAN
+#endif
+
#ifndef BYTE_ORDER
#if defined(__IEEE_LITTLE_ENDIAN) || defined(__IEEE_BYTES_LITTLE_ENDIAN)
#define BYTE_ORDER LITTLE_ENDIAN
@@ -17,4 +24,8 @@
#endif
#endif
+#ifndef __BYTE_ORDER
+#define __BYTE_ORDER BYTE_ORDER
+#endif
+
#endif /* __MACHINE_ENDIAN_H__ */