1
0
Files
webrtc-audio-processing-0/big_endian_support_2.patch
Dave Plater a76c339826 Accepting request 1114091 from home:alarrosa:branches:multimedia:libs
Old 0.3.1 version of webrtc-audio-processing for some
packages in Factory (dino and baresip at least) which
don't work with webrtc-audio-processing 1.x

OBS-URL: https://build.opensuse.org/request/show/1114091
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/webrtc-audio-processing-0?expand=0&rev=1
2023-09-28 13:12:48 +00:00

25 lines
905 B
Diff

diff -up webrtc-audio-processing-0.2/webrtc/typedefs.h.typedef webrtc-audio-processing-0.2/webrtc/typedefs.h
--- webrtc-audio-processing-0.2/webrtc/typedefs.h.typedef 2016-05-12 09:08:53.885000410 -0500
+++ webrtc-audio-processing-0.2/webrtc/typedefs.h 2016-05-12 09:12:38.006851953 -0500
@@ -48,7 +48,19 @@
#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__ is not defined
+#endif
+#if defined(__LP64__)
+#define WEBRTC_ARCH_64_BITS
+#else
+#define WEBRTC_ARCH_32_BITS
+#endif
#endif
#if !(defined(WEBRTC_ARCH_LITTLE_ENDIAN) ^ defined(WEBRTC_ARCH_BIG_ENDIAN))