You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/media-libs/libilbc/files/libilbc-2.0.2-ppc_ppc64_spa...

36 lines
933 B

From 4d0c2edf1f9477f80e361e17de638806b1399a51 Mon Sep 17 00:00:00 2001
From: Rolf Eike Beer <eike@sf-mail.de>
Date: Fri, 23 Mar 2018 01:08:17 +0100
Subject: [PATCH] add platform definitions for PPC and Sparc (#23)
The PPC flags are taken from a Gentoo patch.
---
typedefs.h | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/typedefs.h b/typedefs.h
index 669451626..2f9fe77ea 100644
--- a/typedefs.h
+++ b/typedefs.h
@@ -47,6 +47,20 @@
#elif defined(__pnacl__)
#define WEBRTC_ARCH_32_BITS
#define WEBRTC_ARCH_LITTLE_ENDIAN
+#elif defined(__PPC__)
+#define WEBRTC_ARCH_BIG_ENDIAN
+#if defined(__PPC64__)
+#define WEBRTC_ARCH_64_BITS
+#else
+#define WEBRTC_ARCH_32_BITS
+#endif
+#elif defined(__sparc__)
+#define WEBRTC_ARCH_BIG_ENDIAN
+#if __SIZEOF_LONG__ == 8
+#define WEBRTC_ARCH_64_BITS
+#else
+#define WEBRTC_ARCH_32_BITS
+#endif
#else
#error Please add support for your architecture in typedefs.h
#endif