From: Jacek Caban <jacek@codeweavers.com> Fixes dwrite tests with recent Clang versions, where Clang transforms a call to floor into trunc. --- dlls/msvcrt/mathf.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/msvcrt/mathf.c b/dlls/msvcrt/mathf.c index 8daac69bfc5..d51d7e3fbfb 100644 --- a/dlls/msvcrt/mathf.c +++ b/dlls/msvcrt/mathf.c @@ -75,8 +75,10 @@ __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); } +double trunc(double x) { return x > 0.0 ? floor(x) : ceil(x); } float truncf(float x) { return x > 0.0 ? floor(x) : ceil(x); } __ASM_GLOBAL_IMPORT(exp2) __ASM_GLOBAL_IMPORT(exp2f) +__ASM_GLOBAL_IMPORT(trunc) __ASM_GLOBAL_IMPORT(truncf) #endif -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/10862