aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Korotysh <kolchaprogrammer@list.ru>2020-10-02 14:17:34 +0300
committerNick Korotysh <kolchaprogrammer@list.ru>2020-10-02 14:17:34 +0300
commit3230430311c3b9d027a0ef23c3657eed3caaa696 (patch)
treed806bfd97adfdde849ce8956f0deee333cbcd042
parentFixed typo in the CHANGELOG (diff)
downloadsingleapplication-3230430311c3b9d027a0ef23c3657eed3caaa696.tar.xz
fixed build with Qt 5.9 MSVC2017
define NOMINMAX before <Windows.h> 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.
-rw-r--r--singleapplication_p.cpp1
1 files changed, 1 insertions, 0 deletions
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 <windows.h>
#include <lmcons.h>
#endif