Commit 5f2a2e71 authored by Kai Koehne's avatar Kai Koehne Committed by The Qt Project
Browse files

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: default avatarJonathan Liu <net147@gmail.com>
Reviewed-by: default avatarFriedemann Kleint <Friedemann.Kleint@digia.com>
parent 1fd8af1c
Branches
Tags
No related merge requests found
Showing with 3 additions and 0 deletions
...@@ -12,3 +12,6 @@ HEADERS = main.h \ ...@@ -12,3 +12,6 @@ HEADERS = main.h \
qapplicationargumentparser.cpp qapplicationargumentparser.cpp
load(qt_tool) 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
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment