From 3230430311c3b9d027a0ef23c3657eed3caaa696 Mon Sep 17 00:00:00 2001 From: Nick Korotysh Date: Fri, 2 Oct 2020 14:17:34 +0300 Subject: [PATCH] fixed build with Qt 5.9 MSVC2017 define NOMINMAX before inclusion to disable min/max macros defined in it. these macros conflict with any min/max functions and it is common practice to disable them adding NOMINMAX define. --- singleapplication_p.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/singleapplication_p.cpp b/singleapplication_p.cpp index f4a1ca4..4d74e06 100644 --- a/singleapplication_p.cpp +++ b/singleapplication_p.cpp @@ -57,6 +57,7 @@ #endif #ifdef Q_OS_WIN + #define NOMINMAX #include #include #endif