wstoimax Questions

Joseph S. Myers joseph@codesourcery.com
Wed Nov 13 21:04:00 GMT 2013


On Wed, 13 Nov 2013, Joel Sherrill wrote:

> But
> http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/inttypes.h.html
> says inttypes.h shall define imaxdiv_t and wchar_t.

Note that wchar_t is marked as CX, i.e. an extension to ISO C.

> Is this a glibc bug? Or am I missing something?

It appears to be a bug that glibc doesn't, given the appropriate feature 
test macros, define the wchar_t type in this header (it mustn't be defined 
for plain -std=c99 with no feature test macros).  Please file a glibc bug 
report.

-- 
Joseph S. Myers
joseph@codesourcery.com



More information about the Newlib mailing list