From: Kai Tietz Date: Fri, 23 Dec 2011 17:23:38 +0000 (+0100) Subject: * config/os/mingw32-w64/os_defines.h (__USE_MINGW_ANSI_STDIO): Define. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=737be29e4c88eadb0c2bb6a147e6a1887f86150f;p=gcc.git * config/os/mingw32-w64/os_defines.h (__USE_MINGW_ANSI_STDIO): Define. From-SVN: r182660 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index dbe0bb5616f..6401cf94506 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,7 @@ +2011-12-23 Kai Tietz + + * config/os/mingw32-w64/os_defines.h (__USE_MINGW_ANSI_STDIO): Define. + 2011-12-23 Jonathan Wakely * include/c_global/cinttypes: Update comments that refer to TR1. diff --git a/libstdc++-v3/config/os/mingw32-w64/os_defines.h b/libstdc++-v3/config/os/mingw32-w64/os_defines.h index f82e25c76a7..c8f827d4d85 100644 --- a/libstdc++-v3/config/os/mingw32-w64/os_defines.h +++ b/libstdc++-v3/config/os/mingw32-w64/os_defines.h @@ -45,6 +45,12 @@ #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