This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: stddef.h, [C++] wchar_t vs size_t
- To: <gcc at gcc dot gnu dot org>
- Subject: Re: stddef.h, [C++] wchar_t vs size_t
- From: "Artem Khodush" <artem at duma dot gov dot ru>
- Date: Mon, 9 Oct 2000 13:09:18 +0400
- >Received: from artem by mailsrv.duma.gov.ru (SMI-8.6/SMI-SVR4)id NAA12254; Mon, 9 Oct 2000 13:15:19 +0300
- Cc: "Benjamin Kosnik" <bkoz at redhat dot com>
- References: <200010090831.e998VPn13947@fillmore.constant.com>
>
> 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.