summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2015-01-16 18:32:41 +0100
committerJani Heikkinen <jani.heikkinen@theqtcompany.com>2015-01-19 13:17:56 +0100
commit5ee8ed27e05f17dc7911a5917c012d0a4fa5afcb (patch)
tree44c0626c2a55b55e27f0ee0733303cacd22c3242
parentcd389e4584754554282fbcb1cdc1b174d0f211dc (diff)
rcc: fix build failure on Windows XP / MinGW 4.9
The code makes usage of _fileno without including the appropriate header, which is stdio.h according to Microsoft: http://msdn.microsoft.com/en-us/library/zs6wbdhx%28v=vs.120%29.aspx Task-number: QTBUG-43900 Change-Id: Ic9d407c66243d64823353a1c7e79cf0825c735db Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
-rw-r--r--src/tools/rcc/main.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tools/rcc/main.cpp b/src/tools/rcc/main.cpp
index 3c556d76a8..c2e9b26fb3 100644
--- a/src/tools/rcc/main.cpp
+++ b/src/tools/rcc/main.cpp
@@ -47,6 +47,7 @@
#ifdef Q_OS_WIN
# include <fcntl.h>
# include <io.h>
+# include <stdio.h>
#endif // Q_OS_WIN
QT_BEGIN_NAMESPACE