[PATCH 0/1] MR7954: msvcrt: Add truncf to the import library.
From: Stefan Dösinger <stefan(a)codeweavers.com> Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=58191 --- dlls/msvcrt/mathf.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/msvcrt/mathf.c b/dlls/msvcrt/mathf.c index 3c87c7d0e00..7f46230e7bd 100644 --- a/dlls/msvcrt/mathf.c +++ b/dlls/msvcrt/mathf.c @@ -67,6 +67,8 @@ __ASM_GLOBAL_IMPORT(powf) #if _MSVCR_VER < 120 double exp2(double x) { return pow(2.0, x); } float exp2f(float x) { return powf(2.0f, x); } +float truncf(float x) { return x > 0.0 ? floor(x) : ceil(x); } __ASM_GLOBAL_IMPORT(exp2) __ASM_GLOBAL_IMPORT(exp2f) +__ASM_GLOBAL_IMPORT(truncf) #endif -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/7954
This merge request was approved by Jacek Caban. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/7954
This merge request was approved by Piotr Caban. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/7954
participants (3)
-
Jacek Caban (@jacek) -
Piotr Caban (@piotr) -
Stefan Dösinger