mirror of
https://git.code.sf.net/p/mingw-w64/mingw-w64
synced 2024-11-24 02:14:43 +08:00
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:
parent
fc5123e0e7
commit
bbb89c69ff
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user