stddef.h, [C++] wchar_t vs size_t
Artem Khodush
artem@duma.gov.ru
Mon Oct 9 02:14:00 GMT 2000
>
> 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.
More information about the Gcc
mailing list