Browse code

Let's try fixing Mac PPC endianness detection again

git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/mzR@57729 bc3139a8-67e5-0310-9ffc-ced21a209358

Steffen Neumann authored on 29/08/2011 10:33:26
Showing1 changed files

... ...
@@ -53,6 +53,7 @@ namespace util {
53 53
 #if (defined(PWIZ_GCC) && defined(__BYTE_ORDER) && __BYTE_ORDER==__LITTLE_ENDIAN) || \
54 54
     (defined(__DARWIN_BYTE_ORDER) && __DARWIN_BYTE_ORDER==__DARWIN_LITTLE_ENDIAN) || \
55 55
     (defined(__DARWIN_10_6_AND_LATER) && defined(__LITTLE_ENDIAN__)) || \
56
+    (defined(__LITTLE_ENDIAN__)) || \
56 57
     (defined(__MINGW32__)) || \
57 58
     (defined(__i386__)) || \
58 59
     (defined(PWIZ_MSVC))
... ...
@@ -60,7 +61,8 @@ namespace util {
60 61
 #endif
61 62
 
62 63
 
63
-#if (defined(PWIZ_GCC) && defined(__BYTE_ORDER) && __BYTE_ORDER==__BIG_ENDIAN)
64
+#if (defined(PWIZ_GCC) && defined(__BYTE_ORDER) && __BYTE_ORDER==__BIG_ENDIAN) || \
65
+    (defined(__BIG_ENDIAN__))    
64 66
 #define PWIZ_BIG_ENDIAN
65 67
 #endif
66 68