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

burnus at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Mar 2 18:02:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47945

--- Comment #13 from Tobias Burnus <burnus at gcc dot gnu.org> 2011-03-02 18:02:15 UTC ---
(In reply to comment #12)
> could it be that it was the intention to set __USE_MINGW_ANSI_STDIO in effect?

Yes - and that is what does happen for _POSIX=1 on MinGW64. But it does not
happen for _POSIX=1 on the 32bit MinGW.

Jerry et al.: Do you think the following patch is OK?

--- a/libgfortran/libgfortran.h
+++ b/libgfortran/libgfortran.h
@@ -33,6 +33,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively.  If
not, see
    any system header file is included.  */
 #if defined __MINGW32__
 #  define _POSIX 1
+#  define _POSIX_SOURCE 1
 #  define gfc_printf gnu_printf
 #else
 #  define gfc_printf __printf__



More information about the Gcc-bugs mailing list