diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2024-03-07 14:55:05 +0100 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2024-03-07 14:55:05 +0100 |
| commit | 81d906fd3b6ed25a81665d839ceef2d88f4a74f9 (patch) | |
| tree | 1cb7cad2e7bd10178e3e389c028d40fad993b0e8 /src/wrapped/wrappedfontconfig.c | |
| parent | b51bdf3d5ee213cbbaa689bc7cf848f006041df7 (diff) | |
| download | box64-81d906fd3b6ed25a81665d839ceef2d88f4a74f9.tar.gz box64-81d906fd3b6ed25a81665d839ceef2d88f4a74f9.zip | |
More wrapped functions on libs harfbuzz and fontconfig
Diffstat (limited to 'src/wrapped/wrappedfontconfig.c')
| -rw-r--r-- | src/wrapped/wrappedfontconfig.c | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/src/wrapped/wrappedfontconfig.c b/src/wrapped/wrappedfontconfig.c index a1561c7b..41ef3507 100644 --- a/src/wrapped/wrappedfontconfig.c +++ b/src/wrapped/wrappedfontconfig.c @@ -1,7 +1,7 @@ +#define _GNU_SOURCE /* See feature_test_macros(7) */ #include <stdio.h> #include <stdlib.h> #include <string.h> -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include <dlfcn.h> #include "wrappedlibs.h" @@ -49,6 +49,23 @@ EXPORT void* my_FcObjectSetBuild(x64emu_t* emu, void* first, uint64_t* b) return my->FcObjectSetVaBuild(first, VARARGS); } +EXPORT void* my_FcPatternVaBuild(x64emu_t* emu, void* pattern, x64_va_list_t V) +{ + #ifdef CONVERT_VALIST + CONVERT_VALIST(V); + #else + CREATE_VALIST_FROM_VALIST(V, emu->scratch); + #endif + return my->FcPatternVaBuild(pattern, VARARGS); +} +EXPORT void* my_FcPatternBuild(x64emu_t* emu, void* pattern, uint64_t* b) +{ + if(!pattern) + return my->FcPatternBuild(pattern, NULL); + CREATE_VALIST_FROM_VAARG(b, emu->scratch, 1); + return my->FcPatternVaBuild(pattern, VARARGS); +} + #define NEEDED_LIBS "libexpat.so.1", "libfreetype.so.6" #include "wrappedlib_init.h" |