summaryrefslogblamecommitdiff
path: root/user/sdl2/ensure-c++-on-ppc.patch
blob: 03708c9b6ba0da035a05e4c58e9b3fc721152ba6 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14













                                                                                     
On PowerPC systems, using SDL2 in a C++ codebase would FTBFS.

--- SDL2-2.0.8/include/SDL_cpuinfo.h.old	2018-03-01 16:34:41.000000000 +0000
+++ SDL2-2.0.8/include/SDL_cpuinfo.h	2018-08-07 02:25:05.720000000 +0000
@@ -53,6 +53,9 @@
 #ifdef __ALTIVEC__
 #if HAVE_ALTIVEC_H && !defined(__APPLE_ALTIVEC__) && !defined(SDL_DISABLE_ALTIVEC_H)
 #include <altivec.h>
+#ifdef __cplusplus
+#undef vector
+#endif
 #undef pixel
 #undef bool
 #endif