Bug 370766: test the predefined __LITTLE_ENDIAN__ macro. TBR=glen.beasley
authorwtc%google.com
Sat, 13 Dec 2008 20:54:33 +0000
changeset 4019 cf3860d376be8c0c25e767c727020dd85fed9a20
parent 4018 e64b976f244bae4612728fd249fffc482df88efb
child 4020 6cc4843e327b79b6aa2904585ca4ce70d8dc7f87
child 4026 3faa3720ce4ac5274d90b53d7d0a8a01222ef00e
child 4027 190c2ffc6de6fa0ba44198e7bebf7a34d27f6f05
child 4134 20bdd860b54bd271637b6479cd6a4c8d1d479d9e
child 4176 2199c48354592f278ed5ddc5af20376e62088eb7
child 4177 128fb2db959d6d45e120d215d34e5bdd09e6e24a
push idunknown
push userunknown
push dateunknown
bugs370766
Bug 370766: test the predefined __LITTLE_ENDIAN__ macro. TBR=glen.beasley
pr/include/md/_darwin.cfg
--- a/pr/include/md/_darwin.cfg
+++ b/pr/include/md/_darwin.cfg
@@ -39,17 +39,17 @@
 #define nspr_cpucfg___
 
 #ifndef XP_UNIX
 #define XP_UNIX
 #endif
 
 #define PR_AF_INET6 30  /* same as AF_INET6 */
 
-#if defined(__i386__) || defined(__x86_64__)
+#ifdef __LITTLE_ENDIAN__
 #undef IS_BIG_ENDIAN
 #define  IS_LITTLE_ENDIAN 1
 #else
 #undef IS_LITTLE_ENDIAN
 #define  IS_BIG_ENDIAN 1
 #endif
 
 #ifdef __x86_64__