http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47945
--- Comment #12 from Thomas Henlich <thenlich at users dot sourceforge.net> 2011-03-02 17:54:34 UTC --- (In reply to comment #11) > From libgfortran/libgfortran.h: > > #if defined __MINGW32__ > # define _POSIX 1 > # define gfc_printf gnu_printf > #else Since the comment above that reads: /* Ensure that ANSI conform stdio is used. This needs to be set before any system header file is included. */ could it be that it was the intention to set __USE_MINGW_ANSI_STDIO in effect? So is this a bug in libgfortran.h and it was intended to put # define _POSIX_SOURCE 1 there?