svn commit: trunk/busybox/include

landley at busybox.net landley at busybox.net
Sat Mar 25 03:02:00 UTC 2006


Author: landley
Date: 2006-03-24 19:01:59 -0800 (Fri, 24 Mar 2006)
New Revision: 14654

Log:
Define both big endian and little endian macros.


Modified:
   trunk/busybox/include/platform.h


Changeset:
Modified: trunk/busybox/include/platform.h
===================================================================
--- trunk/busybox/include/platform.h	2006-03-25 02:49:28 UTC (rev 14653)
+++ trunk/busybox/include/platform.h	2006-03-25 03:01:59 UTC (rev 14654)
@@ -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 ------------------------------------------ */




More information about the busybox-cvs mailing list