diff options
author | landley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-03-25 03:01:59 +0000 |
---|---|---|
committer | landley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-03-25 03:01:59 +0000 |
commit | 0e111646311382b788289082988ab18aac401538 (patch) | |
tree | 7ac47b060106fdc90e50f0cc4b8b0a35f7c89a3f /include/platform.h | |
parent | e3e37c41ec49a8146ea5dee502b51c7248cc8765 (diff) | |
download | busybox-w32-0e111646311382b788289082988ab18aac401538.tar.gz busybox-w32-0e111646311382b788289082988ab18aac401538.tar.bz2 busybox-w32-0e111646311382b788289082988ab18aac401538.zip |
Define both big endian and little endian macros.
git-svn-id: svn://busybox.net/trunk/busybox@14654 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'include/platform.h')
-rw-r--r-- | include/platform.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/include/platform.h b/include/platform.h index f51274480..699de8f02 100644 --- a/include/platform.h +++ b/include/platform.h | |||
@@ -85,11 +85,14 @@ | |||
85 | #endif | 85 | #endif |
86 | 86 | ||
87 | #ifdef __BIG_ENDIAN__ | 87 | #ifdef __BIG_ENDIAN__ |
88 | #define BB_BIG_ENDIAN 1 | 88 | #define BB_BIG_ENDIAN 1 |
89 | #define BB_LITTLE_ENDIAN 0 | ||
89 | #elif __BYTE_ORDER == __BIG_ENDIAN | 90 | #elif __BYTE_ORDER == __BIG_ENDIAN |
90 | #define BB_BIG_ENDIAN 1 | 91 | #define BB_BIG_ENDIAN 1 |
92 | #define BB_LITTLE_ENDIAN 0 | ||
91 | #else | 93 | #else |
92 | #define BB_BIG_ENDIAN 0 | 94 | #define BB_BIG_ENDIAN 0 |
95 | #define BB_LITTLE_ENDIAN 1 | ||
93 | #endif | 96 | #endif |
94 | 97 | ||
95 | /* ---- Networking ------------------------------------------ */ | 98 | /* ---- Networking ------------------------------------------ */ |