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/wrappedlibxft.c | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'src/wrapped/wrappedlibxft.c') diff --git a/src/wrapped/wrappedlibxft.c b/src/wrapped/wrappedlibxft.c index 175b9872..633e4066 100644 --- a/src/wrapped/wrappedlibxft.c +++ b/src/wrapped/wrappedlibxft.c @@ -20,20 +20,9 @@ #define LIBNAME libxft #ifdef ANDROID - #define CUSTOM_INIT \ - setNeededLibs(lib, 4, \ - "libX11.so", \ - "libfontconfig.so", \ - "libXrender.so", \ - "libfreetype.so"); +#define NEEDED_LIBS "libX11.so", "libfontconfig.so", "libXrender.so", "libfreetype.so" #else - #define CUSTOM_INIT \ - setNeededLibs(lib, 4, \ - "libX11.so.6", \ - "libfontconfig.so.1", \ - "libXrender.so.1", \ - "libfreetype.so.6"); +#define NEEDED_LIBS "libX11.so.6", "libfontconfig.so.1", "libXrender.so.1", "libfreetype.so.6" #endif #include "wrappedlib_init.h" - -- cgit 1.4.1