From 36282127b81fa2e67aedcead91c0727e2fda648d Mon Sep 17 00:00:00 2001 From: Kai Koehne Date: Wed, 5 Sep 2012 16:10:47 +0200 Subject: [PATCH] Fix compilation for win32-g++ and C++11 gcc defines __STRICT_ANSI__ implicitly for -std=c++0x. The MinGW headers however omit the declaration of common functions like putenv then. Instead of working around this MinGW particularity on a case by case basis, rather just use gnu++0x for QtCore. Change-Id: Iefe4e7f77014a4f1d501b149e34f7049deb52fb9 Reviewed-by: Thiago Macieira --- src/corelib/corelib.pro | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/corelib/corelib.pro b/src/corelib/corelib.pro index cc5b1c2278..d65ed4aa9f 100644 --- a/src/corelib/corelib.pro +++ b/src/corelib/corelib.pro @@ -11,6 +11,9 @@ DEFINES += QT_NO_USING_NAMESPACE win32-msvc*|win32-icc:QMAKE_LFLAGS += /BASE:0x67000000 irix-cc*:QMAKE_CXXFLAGS += -no_prelink -ptused +# otherwise mingw headers do not declare common functions like putenv +win32-g++*:QMAKE_CXXFLAGS_CXX11 = -std=gnu++0x + load(qt_module) QMAKE_DOCS = $$PWD/doc/qtcore.qdocconf