[PATCH v2 2/2] include/msvcrt: redefine towlower* & towupper* with wint_t types

Eric Pouech wine at gitlab.winehq.org
Tue May 3 01:14:21 CDT 2022


From: Eric Pouech <eric.pouech at gmail.com>

it conflicts in C++ compilation with MINGW builtin definitions

Signed-off-by: Eric Pouech <eric.pouech at gmail.com>
---
 include/msvcrt/wctype.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/msvcrt/wctype.h b/include/msvcrt/wctype.h
index 2cf4636a88b..27a6adcd922 100644
--- a/include/msvcrt/wctype.h
+++ b/include/msvcrt/wctype.h
@@ -64,8 +64,8 @@ _ACRTIMP int __cdecl iswpunct(wint_t);
 _ACRTIMP int __cdecl iswspace(wint_t);
 _ACRTIMP int __cdecl iswupper(wint_t);
 _ACRTIMP int __cdecl iswxdigit(wint_t);
-_ACRTIMP wchar_t __cdecl towlower(wchar_t);
-_ACRTIMP wchar_t __cdecl towupper(wchar_t);
+_ACRTIMP wint_t __cdecl towlower(wint_t);
+_ACRTIMP wint_t __cdecl towupper(wint_t);
 #endif /* _WCTYPE_DEFINED */
 
 typedef wchar_t wctrans_t;
-- 
GitLab

https://gitlab.winehq.org/wine/wine/-/merge_requests/20



More information about the wine-devel mailing list