Blame SOURCES/webrtc-fix-typedefs-on-other-arches.patch

7a4656
diff -up webrtc-audio-processing-0.2/webrtc/typedefs.h.typedef webrtc-audio-processing-0.2/webrtc/typedefs.h
7a4656
--- webrtc-audio-processing-0.2/webrtc/typedefs.h.typedef	2016-05-12 09:08:53.885000410 -0500
7a4656
+++ webrtc-audio-processing-0.2/webrtc/typedefs.h	2016-05-12 09:12:38.006851953 -0500
7a4656
@@ -48,7 +48,19 @@
7a4656
 #define WEBRTC_ARCH_32_BITS
7a4656
 #define WEBRTC_ARCH_LITTLE_ENDIAN
7a4656
 #else
7a4656
-#error Please add support for your architecture in typedefs.h
7a4656
+/* instead of failing, use typical unix defines... */
7a4656
+#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
7a4656
+#define WEBRTC_ARCH_LITTLE_ENDIAN
7a4656
+#elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
7a4656
+#define WEBRTC_ARCH_BIG_ENDIAN
7a4656
+#else
7a4656
+#error __BYTE_ORDER__ is not defined
7a4656
+#endif
7a4656
+#if defined(__LP64__)
7a4656
+#define WEBRTC_ARCH_64_BITS
7a4656
+#else
7a4656
+#define WEBRTC_ARCH_32_BITS
7a4656
+#endif
7a4656
 #endif
7a4656
 
7a4656
 #if !(defined(WEBRTC_ARCH_LITTLE_ENDIAN) ^ defined(WEBRTC_ARCH_BIG_ENDIAN))