------- Comment #3 from burnus at gcc dot gnu dot org  2010-02-28 17:42 -------
Patch for using _POSIX - untested.

Index: libgfortran/io/io.h
===================================================================
--- libgfortran/io/io.h (Revision 157097)
+++ libgfortran/io/io.h (Arbeitskopie)
@@ -27,6 +27,12 @@
 #ifndef GFOR_IO_H
 #define GFOR_IO_H

+/* Ensure that ANSI conform stdio is used. This needs to be set before
+   any system header file is included.  */
+#if defined __MINGW32__
+#  define _POSIX 1
+#endif
+
 /* IO library include.  */

 #include "libgfortran.h"


-- 


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

Reply via email to