diff options
author | wtc%google.com <devnull@localhost> | 2009-06-13 13:13:57 +0000 |
---|---|---|
committer | wtc%google.com <devnull@localhost> | 2009-06-13 13:13:57 +0000 |
commit | 9a4c7cbab4fe8d8c15ce43bff850d7093c990584 (patch) | |
tree | d4e03e1cd5a2d6beaf32602c0e2ddb32b59022ac | |
parent | 7ca454743d225c5c1593e3014a503cf7862560b9 (diff) | |
download | nspr-hg-9a4c7cbab4fe8d8c15ce43bff850d7093c990584.tar.gz |
Bug 491205: provide correct endianness macro definitions for big-endian
ARM/Linux systems. The patch is contributed by Mikael Pettersson
<mikpe@it.uu.se>. r=wtc.
Tag: NSPR_4_7_BRANCH
-rw-r--r-- | pr/include/md/_linux.cfg | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pr/include/md/_linux.cfg b/pr/include/md/_linux.cfg index 1999d3cf..6629447e 100644 --- a/pr/include/md/_linux.cfg +++ b/pr/include/md/_linux.cfg @@ -521,8 +521,15 @@ #elif defined(__arm__) +#ifdef __ARMEB__ +#undef IS_LITTLE_ENDIAN +#define IS_BIG_ENDIAN 1 +#elif defined(__ARMEL__) #define IS_LITTLE_ENDIAN 1 #undef IS_BIG_ENDIAN +#else +#error "Unknown ARM endianness." +#endif #define PR_BYTES_PER_BYTE 1 #define PR_BYTES_PER_SHORT 2 |