From 284a61f3e5681d32544223ea0b4ef7645b8ddf20 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Tue, 7 Aug 2018 02:28:01 +0000 Subject: user/sdl2: fix C++ usage on PPC; add udev dynamic joystick support --- user/sdl2/ensure-c++-on-ppc.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 user/sdl2/ensure-c++-on-ppc.patch (limited to 'user/sdl2/ensure-c++-on-ppc.patch') 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 ++#ifdef __cplusplus ++#undef vector ++#endif + #undef pixel + #undef bool + #endif -- cgit v1.2.3-70-g09d2