summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@digia.com>2013-10-10 13:12:15 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-10-23 16:04:56 +0200
commit5f2a2e71eea5daa9ec67db1ca6904762f8bf2b49 (patch)
treecf74ac05f3aaa7dcbc1f6e6624399d1219d971a2
parent1fd8af1c9e6bca1180f2193aa26d1d01df817395 (diff)
downloadqtxmlpatterns-5f2a2e71eea5daa9ec67db1ca6904762f8bf2b49.tar.gz
Fix compilation with mingw.org headers
-std=c++11 sets __STRICT_ANSI__, and the stdio.h from mingw.org doesn't declare e.g. _fileno then. Change-Id: Iaa29e4f2b04bcae73b8706aff1be83913bcf6a52 Reviewed-by: Jonathan Liu <net147@gmail.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
-rw-r--r--tools/xmlpatterns/xmlpatterns.pro3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/xmlpatterns/xmlpatterns.pro b/tools/xmlpatterns/xmlpatterns.pro
index d349a91..1fad197 100644
--- a/tools/xmlpatterns/xmlpatterns.pro
+++ b/tools/xmlpatterns/xmlpatterns.pro
@@ -12,3 +12,6 @@ HEADERS = main.h \
qapplicationargumentparser.cpp
load(qt_tool)
+
+# with c++11 / __STRICT_ANSI__ mingw.org stdio.h doesn't declare e.g. _fileno
+win32-g++*: QMAKE_CXXFLAGS_CXX11 = -std=gnu++0x \ No newline at end of file