This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/47945] REAL(8) output conversion error on MinGW32
- From: "burnus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 2 Mar 2011 16:45:45 +0000
- Subject: [Bug libfortran/47945] REAL(8) output conversion error on MinGW32
- Auto-submitted: auto-generated
- References: <bug-47945-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47945
--- Comment #10 from Tobias Burnus <burnus at gcc dot gnu.org> 2011-03-02 16:45:26 UTC ---
(In reply to comment #9)
> It seems that MinGW has its own implementation of snprintf called
> __mingw_snprintf [...] __mingw_snprintf has the desired behaviour
>From libgfortran/libgfortran.h:
#if HAVE_MINGW_SNPRINTF
extern int __mingw_snprintf (char *, size_t, const char *, ...)
__attribute__ ((format (gnu_printf, 3, 4)));
#undef snprintf
#define snprintf __mingw_snprintf
#endif
That should take care of it - but seemingly it does not.