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 124328 a61fc19b0b249762208467233c40406a5a6c39ba
parent 124327 ba321bc503eb15346bbf17a9f85cac57d7b987fa
child 124329 393f4a1085281dc4645c1fcb496fa1c2101bc6a6
push id1412
push userttaubert@mozilla.com
push dateMon, 11 Mar 2013 12:01:17 +0000
treeherderfx-team@1176278e959b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
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>