diff options
| author | rajdakin <rajdakin@gmail.com> | 2021-08-01 17:06:40 +0200 |
|---|---|---|
| committer | rajdakin <rajdakin@gmail.com> | 2021-08-01 17:06:40 +0200 |
| commit | 1f02ab17e37ac2ed766a9434449af5f58d627613 (patch) | |
| tree | 30cab9603e2a2d913f13f498f34278a8cddfefad /src/wrapped/wrappedlib_init.h | |
| parent | e1d8f1d7e55ea83a8c30680560c22b200cdeb9cd (diff) | |
| download | box64-1f02ab17e37ac2ed766a9434449af5f58d627613.tar.gz box64-1f02ab17e37ac2ed766a9434449af5f58d627613.zip | |
Fixed SDL2 build, allowing to include structures in function signatures
Diffstat (limited to 'src/wrapped/wrappedlib_init.h')
| -rwxr-xr-x | src/wrapped/wrappedlib_init.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/wrapped/wrappedlib_init.h b/src/wrapped/wrappedlib_init.h index 9e69d5a2..e19d4352 100755 --- a/src/wrapped/wrappedlib_init.h +++ b/src/wrapped/wrappedlib_init.h @@ -11,7 +11,12 @@ #define MAPNAME3(N,M) N##M #define MAPNAME2(N,M) MAPNAME3(N,M) #define MAPNAME(N) MAPNAME2(LIBNAME,N) + // prepare the maps +#define _DOIT(P,Q) QUOTE(generated/wrapped##P##Q.h) +#define DOIT(P,Q) _DOIT(P,Q) +#include DOIT(LIBNAME,defs) + // regular symbol mapped to itself #define GO(N, W) // regular symbol mapped to itself, but weak @@ -102,6 +107,9 @@ static const map_onedata_t MAPNAME(mydatamap)[] = { #undef DATAB #undef DATAM +#include DOIT(LIBNAME,undefs) +#undef DOIT +#undef _DOIT void NativeLib_CommonInit(library_t *lib); int FUNC(_init)(library_t* lib, box64context_t* box64) |