From: Stefan Dösinger stefan@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
This merge request was approved by Jacek Caban.
This merge request was approved by Piotr Caban.