-2

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?

skaffman
  • 398,947
  • 96
  • 818
  • 769
Nagasai Sowmya
  • 271
  • 2
  • 3
  • 4
  • possible duplicate of [_T( ) macro changes for UNICODE character data](http://stackoverflow.com/questions/4133144/t-macro-changes-for-unicode-character-data) – pmg Nov 09 '10 at 15:17

1 Answers1

1

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?

Community
  • 1
  • 1
pmg
  • 106,608
  • 13
  • 126
  • 198