From 719b3c27b1e0d4f0449415eaa55a1f10c74864d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20D=C3=B6singer?= Date: Fri, 2 May 2025 13:25:25 +0300 Subject: [PATCH 3/3] msvcrt: Add truncf to the import library. 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 -- 2.49.0