how to define wchar_t as 16-bit?

48 views
Skip to first unread message

Mark Hahn

unread,
Mar 11, 2014, 6:45:03 PM3/11/14
to emscripte...@googlegroups.com
I'm compiling an app that expects wchar_t to be 16-bits.  However I'm getting 32-bits.  I am a newbie to emscripten. Can someone tell me how to change it?

Jukka Jylänki

unread,
Mar 11, 2014, 6:46:44 PM3/11/14
to emscripte...@googlegroups.com
There's the Clang+GCC -supported compiler flag -fshort-wchar you can use. That doesn't affect how Emscripten operates in any way though, it's purely implemented on the Clang side. Does that flag help?


2014-03-12 0:45 GMT+02:00 Mark Hahn <ma...@reevuit.com>:
I'm compiling an app that expects wchar_t to be 16-bits.  However I'm getting 32-bits.  I am a newbie to emscripten. Can someone tell me how to change it?

--
You received this message because you are subscribed to the Google Groups "emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-disc...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Mark Hahn

unread,
Mar 11, 2014, 7:01:09 PM3/11/14
to emscripte...@googlegroups.com
Thanks, that did it.  sizeof(wchar_t) went from 4 to 2.


--
You received this message because you are subscribed to a topic in the Google Groups "emscripten-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/emscripten-discuss/lGstzxlidoY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to emscripten-disc...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages