Define both big endian and little endian macros.
authorRob Landley <rob@landley.net>
Sat, 25 Mar 2006 03:01:59 +0000 (03:01 -0000)
committerRob Landley <rob@landley.net>
Sat, 25 Mar 2006 03:01:59 +0000 (03:01 -0000)
include/platform.h

index f51274480edaf978589d500cba6acfde042fed69..699de8f027fec18e3c0648f5985ca8596fa1ee6d 100644 (file)
 #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 ------------------------------------------ */