summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRob Landley2006-03-25 03:01:59 +0000
committerRob Landley2006-03-25 03:01:59 +0000
commit90ece609e696cfbbf309f57d2a9ebbd2699711be (patch)
tree7ac47b060106fdc90e50f0cc4b8b0a35f7c89a3f /include
parent0bafd47e840bcf887df7d3a634748f3254b01408 (diff)
downloadbusybox-90ece609e696cfbbf309f57d2a9ebbd2699711be.zip
busybox-90ece609e696cfbbf309f57d2a9ebbd2699711be.tar.gz
Define both big endian and little endian macros.
Diffstat (limited to 'include')
-rw-r--r--include/platform.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/include/platform.h b/include/platform.h
index f512744..699de8f 100644
--- a/include/platform.h
+++ b/include/platform.h
@@ -85,11 +85,14 @@
#endif
#ifdef __BIG_ENDIAN__
- #define BB_BIG_ENDIAN 1
+ #define BB_BIG_ENDIAN 1
+ #define BB_LITTLE_ENDIAN 0
#elif __BYTE_ORDER == __BIG_ENDIAN
- #define BB_BIG_ENDIAN 1
+ #define BB_BIG_ENDIAN 1
+ #define BB_LITTLE_ENDIAN 0
#else
- #define BB_BIG_ENDIAN 0
+ #define BB_BIG_ENDIAN 0
+ #define BB_LITTLE_ENDIAN 1
#endif
/* ---- Networking ------------------------------------------ */