[PATCH] Fix wchar_t breakage on Solaris

Eric Botcazou ebotcazou@libertysurf.fr
Sat Apr 1 06:37:00 GMT 2006


> thanks for your help about this issue. I'm afraid the patch is
> incomplete, however: std_cwchar.h should be consistently adjusted and
> that, sadly, is not totally straightforward (like it is for wcstof, for
> instance) because of the C99_DYNAMIC machinery (used by freebsd only,
> AFAIK).

OK.

> Anyway, I think it's fine simply #undef-ing conditional to the new
> macros, then using in NAMESPACE(__gnu_cxx) conditional to the macros
> and, again, using in NAMESPACE(std) conditional to the macros. I don't
> know if you are willing to manage the tangle... ;) just let me know,
> otherwise.

I'd indeed be a little relieved if you could lend a hand. :-)

> Also, given the comment at the beginning of the existing separate
> AC_TRY_COMPILE, I think a one-line new comment mentioning Solaris 7-9 is
> in order in acinclude.m4 too.

Strange, I thought this comment was precisely intended to cover all the 
following AC_TRY_COMPILEs.  But redundancy cannot hurt here.

-- 
Eric Botcazou



More information about the Libstdc++ mailing list