aboutsummaryrefslogtreecommitdiffstats
path: root/testing/telegram-desktop/ppc64le-enable-arch.patch
blob: aeebc891eae53b3b87772b5e2f6ca7a99f8c0c2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
--- a/Telegram/SourceFiles/base/build_config.h
+++ b/Telegram/SourceFiles/base/build_config.h
@@ -51,6 +51,8 @@
 #define ARCH_CPU_64_BITS 1
 #elif defined(_M_ARM) || defined(__arm__)
 #define ARCH_CPU_32_BITS 1
+#elif defined(__PPC64__)
+#define ARCH_CPU_64_BITS 1
 #else
 #error Please add support for your architecture in base/build_config.h
 #endif
--- a/Telegram/ThirdParty/libtgvoip/webrtc_dsp/rtc_base/system/arch.h
+++ b/Telegram/ThirdParty/libtgvoip/webrtc_dsp/rtc_base/system/arch.h
@@ -27,6 +27,10 @@
 #define WEBRTC_ARCH_ARM_FAMILY
 #define WEBRTC_ARCH_64_BITS
 #define WEBRTC_ARCH_LITTLE_ENDIAN
+#elif defined(__PPC64__)
+#define WEBRTC_ARCH_PPC64
+#define WEBRTC_ARCH_64_BITS
+#define WEBRTC_ARCH_LITTLE_ENDIAN
 #elif defined(_M_IX86) || defined(__i386__)
 #define WEBRTC_ARCH_X86_FAMILY
 #define WEBRTC_ARCH_X86
--- a/Telegram/ThirdParty/libtgvoip/webrtc_dsp/typedefs.h
+++ b/Telegram/ThirdParty/libtgvoip/webrtc_dsp/typedefs.h
@@ -27,6 +27,10 @@
 #define WEBRTC_ARCH_ARM_FAMILY
 #define WEBRTC_ARCH_64_BITS
 #define WEBRTC_ARCH_LITTLE_ENDIAN
+#elif defined(__PPC64__)
+#define WEBRTC_ARCH_PPC64
+#define WEBRTC_ARCH_64_BITS
+#define WEBRTC_ARCH_LITTLE_ENDIAN
 #elif defined(_M_IX86) || defined(__i386__)
 #define WEBRTC_ARCH_X86_FAMILY
 #define WEBRTC_ARCH_X86