This is the mail archive of the gcc-help@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]
Other format: [Raw text]

size of wchar_t


Hello.

I need to determine size of wchar_t type at compile-time. Is there some macro to find sizeof(wchar_t). Specifically, I need to know is wchar_t 2 bytes or more. I tried to use WCHAR_TYPE_SIZE macro but it isn't defined by gcc (I use arm-elf-gcc, v3.2). I also want such macro be defined on any target.

What macro should I use? May be some alternative ways exist? Thanks.

Thanks in advance.

--
Best Regards,
Artem B. Bityuckiy,
St.-Petersburg, Russia.


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