2

I'm working on a cross platform project that complies with the -fshort-wchar flag so the wchar_t type is 2 byte. On Windows that's fine but on Linux the means no libc functions like printf or fprintf.

I've been looking for a good solution for some time now and frankly getting a little desperate.

Does anyone have a good idea except avoid using libc functions altogether?

Mat
  • 202,337
  • 40
  • 393
  • 406
Daniel Miron
  • 460
  • 3
  • 14

1 Answers1

0

This inside an #ifdef might help (i haven't tested it though):

typedef __u16 wchar_t16;
Gung Foo
  • 13,392
  • 5
  • 31
  • 39