From b527ebbf5be0949df3b9dcf0806109acc8119476 Mon Sep 17 00:00:00 2001 From: rajdakin Date: Sat, 10 Feb 2024 15:06:08 +0100 Subject: Wrapped libraries refactor (#1257) * [MISC] Removed a warning caused by tab/space mismatch * [WRAPPED] Factored out `getMy` and `freeMy` calls * [WRAPPED] Small cleanup of the init header * [WRAPPED] Factored out `SETALT` * [WRAPPED] Factored out needed libs --- src/wrapped/wrappedlibxt.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'src/wrapped/wrappedlibxt.c') diff --git a/src/wrapped/wrappedlibxt.c b/src/wrapped/wrappedlibxt.c index f221f2a0..94f28659 100644 --- a/src/wrapped/wrappedlibxt.c +++ b/src/wrapped/wrappedlibxt.c @@ -128,16 +128,9 @@ EXPORT long my_XtAppAddInput(x64emu_t* emu, void* context, int source, void* con } #ifdef ANDROID - #define CUSTOM_INIT \ - getMy(lib); \ - setNeededLibs(lib, 2, "libX11.so", "libXext.so"); +#define NEEDED_LIBS "libX11.so", "libXext.so" #else - #define CUSTOM_INIT \ - getMy(lib); \ - setNeededLibs(lib, 2, "libX11.so.6", "libXext.so.6"); +#define NEEDED_LIBS "libX11.so.6", "libXext.so.6" #endif -#define CUSTOM_FINI \ - freeMy(); - #include "wrappedlib_init.h" -- cgit 1.4.1