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>
This commit is contained in:
Lars Knoll 2020-05-27 13:52:53 +02:00 committed by Friedemann Kleint
parent af4e8e21f8
commit 0a07f9528c
2 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@ extern "C" {
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN 1
#endif
#include <windows.h>
#include <qt_windows.h>
#endif
#ifndef APIENTRY

View File

@ -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>