mirror of
https://github.com/termux/termux-packages.git
synced 2024-11-23 14:56:16 +00:00
4f60c445f9
* Migrate to sdl12-compat
15 lines
449 B
Diff
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)
|