diff options
author | Kai Koehne <kai.koehne@nokia.com> | 2012-09-05 16:10:47 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-09-13 16:47:33 +0200 |
commit | 36282127b81fa2e67aedcead91c0727e2fda648d (patch) | |
tree | d522cf9f903871b2ad559fe902aa20db0224f39b | |
parent | f0e2c6fe1c4b89260844243a98862ebe672e3ad9 (diff) |
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 <thiago.macieira@intel.com>
-rw-r--r-- | src/corelib/corelib.pro | 3 |
1 files changed, 3 insertions, 0 deletions
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 |