Details
-
Bug
-
Resolution: Won't Do
-
P3: Somewhat important
-
4.7.0, 5.9.4
-
Visual Studio 2008 SP1
Windows XP SP3
Qt 4.7.0
Description
If using this sequence of includes:
#include <QtCore>
#include <windows.h>
then I cannot compile the application anymore. This is caused by the following line in qnetworksession.h:
#undef interface
This basically removes the "interface" keyword, which is used by Microsoft Visual Studio compilers
Workaround: #include all windows headers before any Qt headers