summaryrefslogtreecommitdiffstats
path: root/src/testlib/qtestcase.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2020-05-27 13:52:53 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2020-05-27 12:41:52 +0000
commit0a07f9528c56615a38b305e8ba8b8b9dc433f260 (patch)
tree7c72353c822a9da343323df5f83eaf6230d51e2d /src/testlib/qtestcase.cpp
parentaf4e8e21f8a32f0eb463423f6808eb431a9afe71 (diff)
Never include windows.h directly in Qt code
Please use qt_windows.h instead, so we avoid having min/max defined. Change-Id: Ic1b29666c427bf24556da5494af45ee5953ae827 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'src/testlib/qtestcase.cpp')
-rw-r--r--src/testlib/qtestcase.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/testlib/qtestcase.cpp b/src/testlib/qtestcase.cpp
index e1da9e617c..f25beee485 100644
--- a/src/testlib/qtestcase.cpp
+++ b/src/testlib/qtestcase.cpp
@@ -102,7 +102,7 @@
# if !defined(Q_CC_MINGW) || (defined(Q_CC_MINGW) && defined(__MINGW64_VERSION_MAJOR))
# include <crtdbg.h>
# endif
-#include <windows.h> // for Sleep
+#include <qt_windows.h> // for Sleep
#endif
#ifdef Q_OS_UNIX
#include <errno.h>