http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59807
--- Comment #4 from Andrey H. <ahanins at gmail dot com> --- Thanks Jonathan, I followed your suggestion regarding os_defines.h, recompiled the whole mingw-w64 toolchain and can confirm that it helps. But doesn't it meant that it should be fixed in GCC sources itself (I mean in libstdc++-v3/config/os/mingw32-w64/os_defines.h). Or there is other standard way how to influence os_defines.h during configuration phase?