http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37522
--- Comment #17 from Karlson2k <k2k at narod dot ru> 2013-03-05 01:28:06 UTC --- Created attachment 29582 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29582 Proposed patch Possible patch for latest MinGW-w64. Patched GCC version: 4.7.2 Can be easy edited for trunk version. --- ./libstdc++-v3/config/os/mingw32-w64/os_defines.h.orig 2011-12-23 21:23:38 +0400 +++ ./libstdc++-v3/config/os/mingw32-w64/os_defines.h 2013-03-05 05:22:07 +0400 @@ -64,7 +64,10 @@ #define _GLIBCXX_HAVE_DOS_BASED_FILESYSTEM 1 // See libstdc++/37522. +#include <_mingw_mac.h> +#if !defined (__MINGW64_VERSION_MAJOR) || (__MINGW64_VERSION_MAJOR < 3) #define _GLIBCXX_HAVE_BROKEN_VSWPRINTF 1 +#endif // See libstdc++/43738 // On native windows targets there is no ioctl function. And the existing