0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-11-23 14:56:16 +00:00
termux-packages/x11-packages/sdl/src-SDL12_compat.c.patch
Tee KOBAYASHI 4f60c445f9 sdl: Bump to 1.2.60
* Migrate to sdl12-compat
2023-01-10 04:51:00 +00:00

15 lines
449 B
Diff

--- a/src/SDL12_compat.c
+++ b/src/SDL12_compat.c
@@ -1143,7 +1143,11 @@
}
#elif defined(__unix__)
#include <dlfcn.h>
+#ifdef __ANDROID__
+ #define SDL20_LIBNAME "libSDL2-2.0.so"
+#else
#define SDL20_LIBNAME "libSDL2-2.0.so.0"
+#endif
#define SDL20_REQUIRED_VER SDL_VERSIONNUM(2,0,7)
static void *Loaded_SDL20 = NULL;
#define LoadSDL20Library() ((Loaded_SDL20 = dlopen(SDL20_LIBNAME, RTLD_LOCAL|RTLD_NOW)) != NULL)