diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2024-12-04 15:20:09 +0100 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2024-12-04 15:20:14 +0100 |
| commit | 2a9d863131229119c7882385e670c488aa88f342 (patch) | |
| tree | 716902f50f9d4c11d076e57d9557cd0ebb5f6e34 /src/wrapped | |
| parent | e3e9a86088766a8750d4da302ff10245bcaec418 (diff) | |
| download | box64-2a9d863131229119c7882385e670c488aa88f342.tar.gz box64-2a9d863131229119c7882385e670c488aa88f342.zip | |
[BOX32][WRAPPER] Added ldiv 32bits wrapped function (now Undertale works with box32, probably other linux gamestudio games too)
Diffstat (limited to 'src/wrapped')
| -rw-r--r-- | src/wrapped/wrappedlibc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/wrapped/wrappedlibc.c b/src/wrapped/wrappedlibc.c index 041d4a3d..ae0cd0fa 100644 --- a/src/wrapped/wrappedlibc.c +++ b/src/wrapped/wrappedlibc.c @@ -2152,13 +2152,13 @@ EXPORT int32_t my_nftw(x64emu_t* emu, void* pathname, void* B, int32_t nopenfd, return f(pathname, findnftwFct(B), nopenfd, flags); } +#endif -EXPORT void* my_ldiv(x64emu_t* emu, void* p, int32_t num, int32_t den) +EXPORT void* my32_ldiv(x64emu_t* emu, void* p, int32_t num, int32_t den) { - *((ldiv_t*)p) = ldiv(num, den); + *((div_t*)p) = div(num, den); return p; } -#endif #ifndef NOALIGN EXPORT int32_t my_epoll_ctl(x64emu_t* emu, int32_t epfd, int32_t op, int32_t fd, void* event) |