Use WCHAR_UNSIGNED when interpreting wide charconsts

Joseph S. Myers jsm28@cam.ac.uk
Sat Feb 23 13:29:00 GMT 2002


On Sat, 23 Feb 2002, Neil Booth wrote:

> > Could you create a testcase that tests
> > that the compiler and preprocessor agree about the signedness of wchar_t?
> 
> Would such a test run on all systems?  In other words, is wchar_t going
> to be typedef-ed everywhere?  If so, it sounds easy.  Otherwise I don't
> think so.

__WCHAR_TYPE__ should be defined everywhere.  (There's a separate test
gcc.dg/wchar_t-1.c to test that GCC's notion of __WHCAR_TYPE__ agrees with
the definition in the system <wchar.h>.)

-- 
Joseph S. Myers
jsm28@cam.ac.uk



More information about the Gcc-patches mailing list