projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0bafd47
)
Define both big endian and little endian macros.
author
Rob Landley
<rob@landley.net>
Sat, 25 Mar 2006 03:01:59 +0000
(
03:01
-0000)
committer
Rob Landley
<rob@landley.net>
Sat, 25 Mar 2006 03:01:59 +0000
(
03:01
-0000)
include/platform.h
patch
|
blob
|
history
diff --git
a/include/platform.h
b/include/platform.h
index f51274480edaf978589d500cba6acfde042fed69..699de8f027fec18e3c0648f5985ca8596fa1ee6d 100644
(file)
--- 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 ------------------------------------------ */