OSDN Git Service

* config/os/mingw32-w64/os_defines.h (__USE_MINGW_ANSI_STDIO): Define.
authorktietz <ktietz@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 23 Dec 2011 17:23:38 +0000 (17:23 +0000)
committerktietz <ktietz@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 23 Dec 2011 17:23:38 +0000 (17:23 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182660 138bc75d-0d04-0410-961f-82ee72b054a4

libstdc++-v3/ChangeLog
libstdc++-v3/config/os/mingw32-w64/os_defines.h

index dbe0bb5..6401cf9 100644 (file)
@@ -1,3 +1,7 @@
+2011-12-23  Kai Tietz  <ktietz@redhat.com>
+
+       * config/os/mingw32-w64/os_defines.h (__USE_MINGW_ANSI_STDIO): Define.
+
 2011-12-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
 
        * include/c_global/cinttypes: Update comments that refer to TR1.
index f82e25c..c8f827d 100644 (file)
 #undef NOMINMAX
 #define NOMINMAX 1
 
+// Make sure that POSIX printf/scanf functions are activated.  As
+// libstdc++ depends on POSIX-definitions of those functions, we define
+// it unconditionally.
+#undef __USE_MINGW_ANSI_STDIO
+#define __USE_MINGW_ANSI_STDIO 1
+
 #if defined (_GLIBCXX_DLL)
 #define _GLIBCXX_PSEUDO_VISIBILITY_default __attribute__ ((__dllimport__))
 #else