This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: stddef.h, [C++] wchar_t vs size_t



> 
> What's up with the wchar_t type definition when using the c++ compiler?
> 
> ginclude/stddef.h has typedefs for
> 
> typedef __SIZE_TYPE__ size_t;
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> 
> yet
> 
> #ifndef __cplusplus
> typedef __WCHAR_TYPE__ wchar_t;
> #endif
> 
> Can somebody please explain why this is so? Why should wchar_t be a

Because for c++, wchar_t is builtin, I guess. 
(at least, there is wchar_type_node in c-decl.c).

Best regards,
Artem.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]