crt: make iswblank always available in C++

Before this patch, wctype.h would make iswblank always available on C++,
but ctype.h and wchar.h would not. Since they share the same definition guard
macro, one could end up not getting iswblank in C++ when including
wctype.h after ctype.h / wchar.h .

This fixes this inconsistency by making it always available when
including those headers as well.

Signed-off-by: Matheus Izvekov <mizvekov@gmail.com>
Signed-off-by: Liu Hao <lh_mouse@126.com>
This commit is contained in:
Matheus Izvekov 2021-06-05 18:45:16 +02:00 committed by Liu Hao
parent fc5123e0e7
commit bbb89c69ff
2 changed files with 2 additions and 2 deletions

View File

@ -191,7 +191,7 @@ int __cdecl isblank(int _C);
int __cdecl is_wctype(wint_t _C,wctype_t _Type);
#endif /* _CRT_USE_WINAPI_FAMILY_DESKTOP_APP */
#if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || !defined (NO_OLDNAMES)
#if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || !defined (NO_OLDNAMES) || defined (__cplusplus)
int __cdecl iswblank(wint_t _C);
#endif
#endif

View File

@ -281,7 +281,7 @@ extern FILE (* __MINGW_IMP_SYMBOL(_iob))[]; /* A pointer to an array of FILE */
int __cdecl is_wctype(wint_t _C,wctype_t _Type);
#endif /* _CRT_USE_WINAPI_FAMILY_DESKTOP_APP */
#if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || !defined (NO_OLDNAMES)
#if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || !defined (NO_OLDNAMES) || defined (__cplusplus)
int __cdecl iswblank(wint_t _C);
#endif