From: Rob Landley Date: Sat, 25 Mar 2006 03:01:59 +0000 (-0000) Subject: Define both big endian and little endian macros. X-Git-Tag: 1_1_0~26 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=90ece609e696cfbbf309f57d2a9ebbd2699711be;p=oweals%2Fbusybox.git Define both big endian and little endian macros. --- 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 @@ #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 ------------------------------------------ */