2009-09-18 Ozkan Sezer <sezeroz@gmail.com>

* wctype.h: Added the missing __cplusplus guard around wchar_t typedef.


git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/trunk@1383 4407c894-4637-0410-b4f5-ada5f102cad1
This commit is contained in:
Ozkan Sezer 2009-09-18 16:55:21 +00:00
parent e58058ada2
commit 447fc4531d
2 changed files with 8 additions and 4 deletions

View File

@ -4,6 +4,8 @@
__MINGW_EXTENSION macro is in effect, remove the gcc-specific typedefs
using machine modes for strict ansi cases and 64 bit scalars.
* wctype.h: Added the missing __cplusplus guard around wchar_t typedef.
2009-09-18 Kai Tietz <kai.tietz@onevision.com>
* Implement time_t related functions by stubs in libmingwex.a and do

View File

@ -23,15 +23,17 @@ extern "C" {
#endif
#ifndef _WCHAR_T_DEFINED
typedef unsigned short wchar_t;
#define _WCHAR_T_DEFINED
#endif
#ifndef __cplusplus
typedef unsigned short wchar_t;
#endif /* C++ */
#endif /* _WCHAR_T_DEFINED */
#ifndef _WCTYPE_T_DEFINED
#define _WCTYPE_T_DEFINED
typedef unsigned short wint_t;
typedef unsigned short wctype_t;
#define _WCTYPE_T_DEFINED
#endif
#endif /* _WCTYPE_T_DEFINED */
#ifndef WEOF
#define WEOF (wint_t)(0xFFFF)