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

998f3c
diff -Nur webrtc-audio-processing-0.1/src/typedefs.h webrtc-audio-processing-0.1.new/src/typedefs.h
998f3c
--- webrtc-audio-processing-0.1/src/typedefs.h	2011-10-21 00:29:33.000000000 -0400
998f3c
+++ webrtc-audio-processing-0.1.new/src/typedefs.h	2014-01-28 18:42:57.816865572 -0500
998f3c
@@ -77,7 +77,19 @@
998f3c
 #define WEBRTC_ARCH_32_BITS
998f3c
 #define WEBRTC_ARCH_LITTLE_ENDIAN
998f3c
 #else
998f3c
-#error Please add support for your architecture in typedefs.h
998f3c
+/* instead of failing, use typical unix defines... */
998f3c
+#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
998f3c
+#define WEBRTC_ARCH_LITTLE_ENDIAN
998f3c
+#elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
998f3c
+#define WEBRTC_ARCH_BIG_ENDIAN
998f3c
+#else
998f3c
+#error __BYTE_ORDER__ isn't defined!
998f3c
+#endif
998f3c
+#if defined(__LP64__)
998f3c
+#define WEBRTC_ARCH_64_BITS
998f3c
+#else
998f3c
+#define WEBRTC_ARCH_32_BITS
998f3c
+#endif
998f3c
 #endif
998f3c
 
998f3c
 #if defined(__SSE2__) || defined(_MSC_VER)