On 2026/08/17 18:45, Zhongteng Gui wrote: > 4 new patches are attached. This should be the final round of wchar.h split. > I'll cleanup wchar_s.h similarly later. > Oops, seemes like the split of corecrt_wstdlib.h is buggy. Need to extra patch for this. Can be squashed into the previous one if wanted.
--- >From 3c9ce8747ba4983116b575b992a196ce118781a0 Mon Sep 17 00:00:00 2001 From: Zhongteng Gui <[email protected]> Date: Mon, 17 Aug 2026 18:49:33 +0800 Subject: [PATCH] headers: crt: move __USE_MINGW_STRTOX to corecrt_wstdlib.h Signed-off-by: Zhongteng Gui <[email protected]> --- mingw-w64-headers/crt/corecrt_wstdlib.h | 4 ++++ mingw-w64-headers/crt/stdlib.h | 4 ---- mingw-w64-headers/crt/wchar.h | 4 ---- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/mingw-w64-headers/crt/corecrt_wstdlib.h b/mingw-w64-headers/crt/corecrt_wstdlib.h index d3673cdb7..122919b97 100644 --- a/mingw-w64-headers/crt/corecrt_wstdlib.h +++ b/mingw-w64-headers/crt/corecrt_wstdlib.h @@ -8,6 +8,10 @@ #include <corecrt.h> +#if __USE_MINGW_ANSI_STDIO && !defined (__USE_MINGW_STRTOX) && !defined(_CRTBLD) +#define __USE_MINGW_STRTOX 1 +#endif + _CRT_BEGIN_C_HEADER _CRTIMP wchar_t *__cdecl _itow(int _Value,wchar_t *_Dest,int _Radix) __MINGW_ATTRIB_DEPRECATED_SEC_WARN; diff --git a/mingw-w64-headers/crt/stdlib.h b/mingw-w64-headers/crt/stdlib.h index 0f1249adb..f280b4415 100644 --- a/mingw-w64-headers/crt/stdlib.h +++ b/mingw-w64-headers/crt/stdlib.h @@ -10,10 +10,6 @@ #include <corecrt_wstdlib.h> #include <limits.h> -#if __USE_MINGW_ANSI_STDIO && !defined (__USE_MINGW_STRTOX) && !defined(_CRTBLD) -#define __USE_MINGW_STRTOX 1 -#endif - _CRT_BEGIN_C_HEADER #ifndef NULL diff --git a/mingw-w64-headers/crt/wchar.h b/mingw-w64-headers/crt/wchar.h index 56305050a..a747e9c2f 100644 --- a/mingw-w64-headers/crt/wchar.h +++ b/mingw-w64-headers/crt/wchar.h @@ -19,10 +19,6 @@ #include <sys/stat.h> #include <_mingw_locale.h> -#if __USE_MINGW_ANSI_STDIO && !defined (__USE_MINGW_STRTOX) && !defined(_CRTBLD) -#define __USE_MINGW_STRTOX 1 -#endif - _CRT_BEGIN_C_HEADER #ifndef WCHAR_MIN /* also in stdint.h */ -- 2.55.0.windows.4 _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
