about summary refs log tree commit diff stats
path: root/src/wrapped/wrappedsdl2.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/wrapped/wrappedsdl2.c')
-rw-r--r--src/wrapped/wrappedsdl2.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/wrapped/wrappedsdl2.c b/src/wrapped/wrappedsdl2.c
index 930264c6..d12cea24 100644
--- a/src/wrapped/wrappedsdl2.c
+++ b/src/wrapped/wrappedsdl2.c
@@ -820,17 +820,17 @@ EXPORT void my2_SDL_GetJoystickGUIDInfo(SDL_JoystickGUID guid, uint16_t *vend, u
     }
 }
 
+#undef HAS_MY
+
+#define ALTMY my2_
+
 #define CUSTOM_INIT \
     box64->sdl2lib = lib;                   \
     getMy(lib);                             \
     box64->sdl2allocrw = my->SDL_AllocRW;   \
-    box64->sdl2freerw  = my->SDL_FreeRW;    \
-    SETALT(my2_);                           \
-    setNeededLibs(lib, 4,                   \
-        "libdl.so.2",                       \
-        "libm.so.6",                        \
-        "librt.so.1",                       \
-        "libpthread.so.0");
+    box64->sdl2freerw  = my->SDL_FreeRW;
+
+#define NEEDED_LIBS "libdl.so.2", "libm.so.6", "librt.so.1", "libpthread.so.0"
 
 #define CUSTOM_FINI \
     my->SDL_Quit();                                             \
@@ -841,5 +841,4 @@ EXPORT void my2_SDL_GetJoystickGUIDInfo(SDL_JoystickGUID guid, uint16_t *vend, u
     my_context->sdl2allocrw = NULL;                             \
     my_context->sdl2freerw = NULL;
 
-
 #include "wrappedlib_init.h"