Date: Thu, 15 Apr 2010 17:27:34 -0400 From: David Schultz <das@FreeBSD.ORG> To: Juli Mallett <jmallett@FreeBSD.ORG> Cc: svn-src-head@FreeBSD.ORG, svn-src-all@FreeBSD.ORG, src-committers@FreeBSD.ORG Subject: Re: svn commit: r205954 - head/include Message-ID: <20100415212734.GA17239@zim.MIT.EDU> In-Reply-To: <201003310212.o2V2CO7b063419@svn.freebsd.org> References: <201003310212.o2V2CO7b063419@svn.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100415212734.GA17239>