From 29a7489769bca59630782061789561fb07d77892 Mon Sep 17 00:00:00 2001 From: Volker Hilsheimer Date: Mon, 21 Feb 2022 23:31:08 +0100 Subject: Always include qt_windows header first qt_windows takes care of setting NOMINMAX, which prevents native headers from defining `min` and `max` as macros, breaking the build. So include that header always as the first header. Pick-to: 6.3 Change-Id: I82cd8b21d263102000e6e66f135465bc2c126db4 Reviewed-by: Friedemann Kleint --- src/plugins/platforms/windows/qwindowsdialoghelpers.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/plugins/platforms/windows/qwindowsdialoghelpers.cpp') diff --git a/src/plugins/platforms/windows/qwindowsdialoghelpers.cpp b/src/plugins/platforms/windows/qwindowsdialoghelpers.cpp index e8399bd3d2..89d55e9b48 100644 --- a/src/plugins/platforms/windows/qwindowsdialoghelpers.cpp +++ b/src/plugins/platforms/windows/qwindowsdialoghelpers.cpp @@ -43,6 +43,7 @@ #define _WIN32_WINNT 0x0A00 #endif +#include #include "qwindowscombase.h" #include "qwindowsdialoghelpers.h" @@ -74,8 +75,6 @@ #include #include -#include - // #define USE_NATIVE_COLOR_DIALOG /* Testing purposes only */ QT_BEGIN_NAMESPACE -- cgit v1.2.3