mirror of
https://git.busybox.net/busybox
synced 2026-02-07 20:50:26 +00:00
Define both big endian and little endian macros.
This commit is contained in:
parent
0bafd47e84
commit
90ece609e6
1 changed files with 6 additions and 3 deletions
|
|
@ -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 ------------------------------------------ */
|
||||
|
|
|
|||
Loading…
Reference in a new issue