rcc: fix build failure on Windows XP / MinGW 4.9
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Fri, 16 Jan 2015 17:32:41 +0000 (18:32 +0100)
committerJani Heikkinen <jani.heikkinen@theqtcompany.com>
Mon, 19 Jan 2015 12:17:56 +0000 (13:17 +0100)
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>
src/tools/rcc/main.cpp

index 3c556d76a8a0105c70cdae8e8c70222e5b425e58..c2e9b26fb3120416519bf2dcaff905f22d78f900 100644 (file)
@@ -47,6 +47,7 @@
 #ifdef Q_OS_WIN
 #  include <fcntl.h>
 #  include <io.h>
+#  include <stdio.h>
 #endif // Q_OS_WIN
 
 QT_BEGIN_NAMESPACE