defining wchar_t to 2byte

283 views Asked by At

In my application I always need wchar_t to be 2 byte. I know -fshort-wchar can do this. But I can't use this on zSeries. is there any other way to define wchar_t to 2 byte?

1

There are 1 answers

0
pmg On

No. wchar_t is implementation defined. You have no control over it.

Don't rely on implementation defined types. Rely on Standard (C99 <inttypes.h>) types instead.


What's wrong with the question _T( ) macro changes for UNICODE character data?