forked from pool/MozillaFirefox
43 lines
1.3 KiB
Diff
43 lines
1.3 KiB
Diff
|
# HG changeset patch
|
||
|
# Parent acbe154db4c912f3ac853c0671cd3d5e52b1e716
|
||
|
# User Ulrich Weigand <uweigand@de.ibm.com>
|
||
|
Bug 976648 - powerpc64le-linux support - WebRTC endian config
|
||
|
|
||
|
diff --git a/media/webrtc/trunk/webrtc/typedefs.h b/media/webrtc/trunk/webrtc/typedefs.h
|
||
|
--- a/media/webrtc/trunk/webrtc/typedefs.h
|
||
|
+++ b/media/webrtc/trunk/webrtc/typedefs.h
|
||
|
@@ -47,23 +47,33 @@
|
||
|
//#define WEBRTC_ARCH_ARM_FAMILY
|
||
|
//#define WEBRTC_ARCH_ARMEL
|
||
|
#define WEBRTC_ARCH_32_BITS
|
||
|
#define WEBRTC_ARCH_LITTLE_ENDIAN
|
||
|
#define WEBRTC_LITTLE_ENDIAN
|
||
|
#elif defined(__powerpc64__)
|
||
|
#define WEBRTC_ARCH_PPC64 1
|
||
|
#define WEBRTC_ARCH_64_BITS 1
|
||
|
+#ifdef __LITTLE_ENDIAN__
|
||
|
+#define WEBRTC_ARCH_LITTLE_ENDIAN
|
||
|
+#define WEBRTC_LITTLE_ENDIAN
|
||
|
+#else
|
||
|
#define WEBRTC_ARCH_BIG_ENDIAN
|
||
|
#define WEBRTC_BIG_ENDIAN
|
||
|
+#endif
|
||
|
#elif defined(__ppc__) || defined(__powerpc__)
|
||
|
#define WEBRTC_ARCH_PPC 1
|
||
|
#define WEBRTC_ARCH_32_BITS 1
|
||
|
+#ifdef __LITTLE_ENDIAN__
|
||
|
+#define WEBRTC_ARCH_LITTLE_ENDIAN
|
||
|
+#define WEBRTC_LITTLE_ENDIAN
|
||
|
+#else
|
||
|
#define WEBRTC_ARCH_BIG_ENDIAN
|
||
|
#define WEBRTC_BIG_ENDIAN
|
||
|
+#endif
|
||
|
#elif defined(__sparc64__)
|
||
|
#define WEBRTC_ARCH_SPARC 1
|
||
|
#define WEBRTC_ARCH_64_BITS 1
|
||
|
#define WEBRTC_ARCH_BIG_ENDIAN
|
||
|
#define WEBRTC_BIG_ENDIAN
|
||
|
#elif defined(__sparc__)
|
||
|
#define WEBRTC_ARCH_SPARC 1
|
||
|
#define WEBRTC_ARCH_32_BITS 1
|