2016-06-28 12:31:38 +00:00
|
|
|
diff -urN a/webrtc/typedefs.h b/webrtc/typedefs.h
|
|
|
|
--- a/webrtc/typedefs.h 2015-10-15 04:48:25.000000000 -0600
|
|
|
|
+++ b/webrtc/typedefs.h 2016-06-28 06:27:52.055355516 -0600
|
|
|
|
@@ -48,7 +48,19 @@
|
2015-07-15 00:46:50 +00:00
|
|
|
#define WEBRTC_ARCH_32_BITS
|
|
|
|
#define WEBRTC_ARCH_LITTLE_ENDIAN
|
|
|
|
#else
|
|
|
|
-#error Please add support for your architecture in typedefs.h
|
|
|
|
+/* instead of failing, use typical unix defines... */
|
|
|
|
+#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
|
|
|
|
+#define WEBRTC_ARCH_LITTLE_ENDIAN
|
|
|
|
+#elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
|
|
|
|
+#define WEBRTC_ARCH_BIG_ENDIAN
|
|
|
|
+#else
|
|
|
|
+#error __BYTE_ORDER__ isn't defined!
|
|
|
|
+#endif
|
|
|
|
+#if defined(__LP64__)
|
|
|
|
+#define WEBRTC_ARCH_64_BITS
|
|
|
|
+#else
|
|
|
|
+#define WEBRTC_ARCH_32_BITS
|
|
|
|
+#endif
|
|
|
|
#endif
|
|
|
|
|
2016-06-28 12:31:38 +00:00
|
|
|
#if !(defined(WEBRTC_ARCH_LITTLE_ENDIAN) ^ defined(WEBRTC_ARCH_BIG_ENDIAN))
|