-- Best regards, LIU Hao
From 99cc51ee0b886965aba116385f749cf1b470aa16 Mon Sep 17 00:00:00 2001 From: Biswapriyo Nath <nathbap...@gmail.com> Date: Sun, 23 Mar 2025 08:45:03 +0000 Subject: [PATCH] headers/crt: Add _wcreate_locale declaration This function is available since MSVCR110. Required for https://sourceforge.net/p/mingw-w64/mailman/message/59164037/ Signed-off-by: Biswapriyo Nath <nathbap...@gmail.com> Co-authored-by: LIU Hao <lh_mo...@126.com> Signed-off-by: LIU Hao <lh_mo...@126.com> --- mingw-w64-headers/crt/locale.h | 4 ++++ mingw-w64-headers/crt/wchar.h | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/mingw-w64-headers/crt/locale.h b/mingw-w64-headers/crt/locale.h index 9b695e333..f69bd6ed7 100644 --- a/mingw-w64-headers/crt/locale.h +++ b/mingw-w64-headers/crt/locale.h @@ -103,6 +103,10 @@ extern "C" { _CRTIMP wchar_t *__cdecl _wsetlocale(int _Category,const wchar_t *_Locale); #endif +#if __MSVCRT_VERSION__ >= 0xB00 + _CRTIMP _locale_t __cdecl _wcreate_locale(int _Category, const wchar_t *_Locale); +#endif + #ifdef __CHAR_UNSIGNED__ /* Pull in the constructor from 'charmax.c'. */ extern int __mingw_initcharmax; diff --git a/mingw-w64-headers/crt/wchar.h b/mingw-w64-headers/crt/wchar.h index e8228b82b..9a74f1f72 100644 --- a/mingw-w64-headers/crt/wchar.h +++ b/mingw-w64-headers/crt/wchar.h @@ -202,6 +202,10 @@ _CRTIMP FILE *__cdecl __acrt_iob_func(unsigned index); _CRTIMP wchar_t *__cdecl _wsetlocale(int _Category,const wchar_t *_Locale); #endif +#if __MSVCRT_VERSION__ >= 0xB00 + _CRTIMP _locale_t __cdecl _wcreate_locale(int _Category, const wchar_t *_Locale); +#endif + #ifdef _CRT_USE_WINAPI_FAMILY_DESKTOP_APP #ifndef _WEXEC_DEFINED #define _WEXEC_DEFINED -- 2.49.0
OpenPGP_signature.asc
Description: OpenPGP digital signature
_______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public