diff --git a/perl.h b/perl.h index 477e59a405..0c57096aed 100644 --- a/perl.h +++ b/perl.h @@ -1284,11 +1284,11 @@ typedef enum { # define USE_PL_CUR_LC_ALL # endif - /* Assume MingW has the broken localeconv() that Microsoft + /* Assume MingW without UCRT has the broken localeconv() that Microsoft * fixed in VS 2015 */ -# ifndef _MSC_VER -# define TS_W32_BROKEN_LOCALECONV -# endif +# if ! defined(_MSC_VER) && ! defined(_UCRT) +# define TS_W32_BROKEN_LOCALECONV +# endif # endif /* POSIX 2008 and Windows with thread-safe locales keep locale information