This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Make libstdc++ use strtold on MinGW
- From: "Danny Smith" <dansmister at gmail dot com>
- To: "Joseph S. Myers" <joseph at codesourcery dot com>
- Cc: gcc-patches at gcc dot gnu dot org, libstdc++ at gcc dot gnu dot org
- Date: Tue, 4 Mar 2008 16:17:01 +1300
- Subject: Re: Make libstdc++ use strtold on MinGW
- References: <Pine.LNX.4.64.0802281305250.28196@digraph.polyomino.org.uk> <Pine.LNX.4.64.0802281803230.32317@digraph.polyomino.org.uk>
On Fri, Feb 29, 2008 at 7:09 AM, Joseph S. Myers
<joseph@codesourcery.com> wrote:
> I should also add: there are similar issues with long double output to
> those with input, since Windows printf functions do not support long
> double either.
>
> For the output issue, the fix involves using MinGW's replacement snprintf
> functions with long double support, which means enabling C99 support in
> libstdc++ so that it uses snprintf. C99 support is disabled on MinGW only
> because complex.h support is detected as absent, because MinGW <complex.h>
> conditions out all its contents in strict non-C99 mode, as used for
> configure tests. This can be fixed by a patch to MinGW such as the one
> below (submitted to the MinGW patch tracker). Alternative fixes would be
> to make the C99 support in libstdc++ more fine-grained, so snprintf can be
> used without needing all the other parts of C99 support, or to use
> fixincludes to apply such a change to an existing <complex.h> header.
>
>
> 2008-02-28 Joseph Myers <joseph@codesourcery.com>
>
> * include/complex.h: Don't condition contents on C99 or not
> __STRICT_ANSI__.
>
FYI, This patch has been applied to mingw CVS.
Danny