Bug 849598. Get in-tree Snappy happy on big endian platforms. r=khuey
authorCameron Kaiser <spectre@armory.com>
Sun, 10 Mar 2013 10:10:00 -0700
changeset 134721 a61fc19b0b249762208467233c40406a5a6c39ba
parent 134720 ba321bc503eb15346bbf17a9f85cac57d7b987fa
child 134722 393f4a1085281dc4645c1fcb496fa1c2101bc6a6
push idunknown
push userunknown
push dateunknown
reviewerskhuey
bugs849598
milestone22.0a1
Bug 849598. Get in-tree Snappy happy on big endian platforms. r=khuey
other-licenses/snappy/snappy-stubs-public.h
--- a/other-licenses/snappy/snappy-stubs-public.h
+++ b/other-licenses/snappy/snappy-stubs-public.h
@@ -33,16 +33,20 @@
 // which is a public header. Instead, snappy-stubs-public.h is generated by
 // from snappy-stubs-public.h.in at configure time.
 
 #ifndef UTIL_SNAPPY_OPENSOURCE_SNAPPY_STUBS_PUBLIC_H_
 #define UTIL_SNAPPY_OPENSOURCE_SNAPPY_STUBS_PUBLIC_H_
 
 #include "mozilla/StandardInteger.h"
 
+#if defined IS_BIG_ENDIAN || defined __BIG_ENDIAN__
+#define WORDS_BIGENDIAN
+#endif
+
 #define SNAPPY_MAJOR 1
 #define SNAPPY_MINOR 0
 #define SNAPPY_PATCHLEVEL 4
 #define SNAPPY_VERSION \
     ((SNAPPY_MAJOR << 16) | (SNAPPY_MINOR << 8) | SNAPPY_PATCHLEVEL)
 
 #include <string>