svn commit: r205954 - head/include

David Schultz das at FreeBSD.ORG
Thu Apr 15 21:27:35 UTC 2010


On Wed, Mar 31, 2010, Juli Mallett wrote:
>   Be like stdlib.h and bring in a wchar_t definition and use it to prototype
>   wcstoimax and wcstoumax, rather than spelling it __wchar_t.  This is necessary
>   to use these functions in C++ where wchar_t is different to __wchar_t and is
>   a built-in type.

I don't think this change is correct for C mode.  POSIX says
wchar_t is *supposed* to be defined by stdlib.h and wchar.h, but
its definition is namespace pollution elsewhere.

>   It may be better to use __wchar_t here and to simply define __wchar_t as being
>   wchar_t in C++ mode rather than to bring in wchar_t

That may be better.


More information about the svn-src-all mailing list