This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libfortran/47945] REAL(8) output conversion error on MinGW32


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]