diff --git a/headers/posix/wchar_t.h b/headers/posix/wchar_t.h index 0925cb33cc..37fee5ad18 100644 --- a/headers/posix/wchar_t.h +++ b/headers/posix/wchar_t.h @@ -7,7 +7,9 @@ #ifndef _WCHAR_T_H #define _WCHAR_T_H +#if !defined(__cplusplus) || __GNUC__ < 3 typedef unsigned short wchar_t; +#endif #define _WINT_T typedef unsigned int wint_t;