On Fri, 11 Oct 2024, LIU Hao wrote:
在 2024-10-11 19:11, Martin Storsjö 写道:
diff --git a/mingw-w64-headers/crt/ctype.h b/mingw-w64-headers/crt/ctype.h
index 60c17cc9a..85b09a519 100644
--- a/mingw-w64-headers/crt/ctype.h
+++ b/mingw-w64-headers/crt/ctype.h
@@ -138,7 +138,8 @@ int __cdecl isblank(int _C);
wint_t __cdecl towupper(wint_t _C);
wint_t __cdecl towlower(wint_t _C);
int __cdecl iswctype(wint_t _C,wctype_t _Type);
-#if __MSVCRT_VERSION__ >= 0x800
+#if __MSVCRT_VERSION__ >= 0x800 || (__MSVCRT_VERSION__ == 0x700 &&
_WIN32_WINNT >= 0x0600)
+ /* These are available since msvcr80.dll, and in msvcrt.dll since Vista.
*/
These functions really do not exist on MSVCRT.DLL from Vista x64
(7.0.6002.18005):
* _ispunct_l
* _iswcsym_l
* _iswcsymf_l
The first out of these isn't touched in this patch, but I can split out
the latter two into a separate ifdef.
// Martin
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public