xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable POSIX-printf for mingw-hosted builds.
authorKai Tietz <ktietz@redhat.com>
Mon, 25 Mar 2013 14:52:48 +0000 (15:52 +0100)
committerKai Tietz <ktietz@gcc.gnu.org>
Mon, 25 Mar 2013 14:52:48 +0000 (15:52 +0100)
        * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
        POSIX-printf for mingw-hosted  builds.

From-SVN: r197049

gcc/ChangeLog
gcc/config/i386/xm-mingw32.h

index 593d492..6ecf997 100644 (file)
@@ -1,3 +1,8 @@
+2013-03-25  Kai Tietz  <ktietz@redhat.com>
+
+       * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
+       POSIX-printf for mingw-hosted  builds.
+
 2013-03-25  Richard Biener  <rguenther@suse.de>
 
        PR middle-end/56694
index 3e20481..3d90dec 100644 (file)
@@ -29,6 +29,12 @@ along with GCC; see the file COPYING3.  If not see
 /*  The st_ino field of struct stat is always 0.  */
 #define HOST_LACKS_INODE_NUMBERS
 
+#ifdef __MINGW32__
+#undef __USE_MINGW_ANSI_STDIO
+#define __USE_MINGW_ANSI_STDIO 1
+#else
 /* MSVCRT does not support the "ll" format specifier for printing
    "long long" values.  Instead, we use "I64".  */
 #define HOST_LONG_LONG_FORMAT "I64"
+#endif
+