mirror of
https://github.com/sheumann/hush.git
synced 2025-01-13 21:31:51 +00:00
Define both big endian and little endian macros.
This commit is contained in:
parent
0bafd47e84
commit
90ece609e6
@ -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…
x
Reference in New Issue
Block a user