From 3ac05d10dbdaef0cafb6d83c210b2704a469e89b Mon Sep 17 00:00:00 2001 From: sisyphus Date: Sat, 25 Nov 2023 11:34:55 +1100 Subject: [PATCH] define HAS_TRUNC and $Config{d_trunc)for MSVC builds Fixes POSIX/t/math.t failures on MSVC builds of MSWin32-x86-multi-thread --- win32/config.vc | 2 +- win32/config_H.vc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/win32/config.vc b/win32/config.vc index b22466a35c64..384ec0e708d7 100644 --- a/win32/config.vc +++ b/win32/config.vc @@ -604,7 +604,7 @@ d_tm_tm_zone='undef' d_tmpnam_r='undef' d_towlower='undef' d_towupper='undef' -d_trunc='undef' +d_trunc='define' d_truncate='undef' d_truncl='undef' d_ttyname_r='undef' diff --git a/win32/config_H.vc b/win32/config_H.vc index d93f7ec6b463..3e95dd1da079 100644 --- a/win32/config_H.vc +++ b/win32/config_H.vc @@ -3543,7 +3543,7 @@ * This symbol, if defined, indicates that the trunc routine is * available to round doubles towards zero. */ -/*#define HAS_TRUNC / **/ +#define HAS_TRUNC /**/ /* HAS_TRUNCL: * This symbol, if defined, indicates that the truncl routine is