summaryrefslogtreecommitdiff
path: root/user/sdl2/ensure-c++-on-ppc.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-08-07 02:28:01 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-08-07 02:28:01 +0000
commit284a61f3e5681d32544223ea0b4ef7645b8ddf20 (patch)
tree310105757690f29d3c76e79814b836bf836fd3f7 /user/sdl2/ensure-c++-on-ppc.patch
parent7bd0b76c47c41ed2fc45f86d068c887474b1d1e5 (diff)
downloadpackages-284a61f3e5681d32544223ea0b4ef7645b8ddf20.tar.gz
packages-284a61f3e5681d32544223ea0b4ef7645b8ddf20.tar.bz2
packages-284a61f3e5681d32544223ea0b4ef7645b8ddf20.tar.xz
packages-284a61f3e5681d32544223ea0b4ef7645b8ddf20.zip
user/sdl2: fix C++ usage on PPC; add udev dynamic joystick support
Diffstat (limited to 'user/sdl2/ensure-c++-on-ppc.patch')
-rw-r--r--user/sdl2/ensure-c++-on-ppc.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/user/sdl2/ensure-c++-on-ppc.patch b/user/sdl2/ensure-c++-on-ppc.patch
new file mode 100644
index 000000000..03708c9b6
--- /dev/null
+++ b/user/sdl2/ensure-c++-on-ppc.patch
@@ -0,0 +1,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