Fix the _WCTYPE_T_DEFINED sentry for compatibility.
diff --git a/include/msvcrt/ctype.h b/include/msvcrt/ctype.h index 49ac097..31febe0 100644 --- a/include/msvcrt/ctype.h +++ b/include/msvcrt/ctype.h
@@ -40,10 +40,10 @@ # endif #endif /* USE_MSVCRT_PREFIX */ -#ifndef MSVCRT_WCTYPE_T_DEFINED -typedef MSVCRT(wchar_t) MSVCRT(wint_t); -typedef MSVCRT(wchar_t) MSVCRT(wctype_t); -#define MSVCRT_WCTYPE_T_DEFINED +#ifndef _WCTYPE_T_DEFINED +typedef unsigned short MSVCRT(wint_t); +typedef unsigned short MSVCRT(wctype_t); +#define _WCTYPE_T_DEFINED #endif /* ASCII char classification table - binary compatible */
diff --git a/include/msvcrt/stdio.h b/include/msvcrt/stdio.h index d5c9e11..df92ca6 100644 --- a/include/msvcrt/stdio.h +++ b/include/msvcrt/stdio.h
@@ -129,10 +129,10 @@ #endif #endif -#ifndef MSVCRT_WCTYPE_T_DEFINED -typedef MSVCRT(wchar_t) MSVCRT(wint_t); -typedef MSVCRT(wchar_t) MSVCRT(wctype_t); -#define MSVCRT_WCTYPE_T_DEFINED +#ifndef _WCTYPE_T_DEFINED +typedef unsigned short MSVCRT(wint_t); +typedef unsigned short MSVCRT(wctype_t); +#define _WCTYPE_T_DEFINED #endif #ifdef __cplusplus
diff --git a/include/msvcrt/wchar.h b/include/msvcrt/wchar.h index 8ca342b..61d6161 100644 --- a/include/msvcrt/wchar.h +++ b/include/msvcrt/wchar.h
@@ -50,10 +50,10 @@ #define MSVCRT_SIZE_T_DEFINED #endif -#ifndef MSVCRT_WCTYPE_T_DEFINED -typedef MSVCRT(wchar_t) MSVCRT(wint_t); -typedef MSVCRT(wchar_t) MSVCRT(wctype_t); -#define MSVCRT_WCTYPE_T_DEFINED +#ifndef _WCTYPE_T_DEFINED +typedef unsigned short MSVCRT(wint_t); +typedef unsigned short MSVCRT(wctype_t); +#define _WCTYPE_T_DEFINED #endif #ifndef _MSC_VER
diff --git a/include/msvcrt/wctype.h b/include/msvcrt/wctype.h index fc0fdd1..de4fe23 100644 --- a/include/msvcrt/wctype.h +++ b/include/msvcrt/wctype.h
@@ -60,10 +60,10 @@ # endif #endif /* USE_MSVCRT_PREFIX */ -#ifndef MSVCRT_WCTYPE_T_DEFINED -typedef MSVCRT(wchar_t) MSVCRT(wint_t); -typedef MSVCRT(wchar_t) MSVCRT(wctype_t); -#define MSVCRT_WCTYPE_T_DEFINED +#ifndef _WCTYPE_T_DEFINED +typedef unsigned short MSVCRT(wint_t); +typedef unsigned short MSVCRT(wctype_t); +#define _WCTYPE_T_DEFINED #endif /* FIXME: there's something to do with __p__pctype and __p__pwctype */