aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorItay Grudev <itay+github.com@grudev.com>2020-10-06 16:20:38 +0100
committerGitHub <noreply@github.com>2020-10-06 16:20:38 +0100
commit0e42d86cecf008e850bc1f7540196de1f6bf182d (patch)
treea2f217f92c047c288f764b2f7f4b4a613558ac34
parentMerge pull request #111 from jonaski/connecttoprimary (diff)
parentFix build issue with MinGW GCC pedantic mode (diff)
downloadsingleapplication-0e42d86cecf008e850bc1f7540196de1f6bf182d.tar.xz
Merge pull request #112 from iakov/patch-1
Fix build issue with MinGW GCC pedantic mode
-rw-r--r--singleapplication_p.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/singleapplication_p.cpp b/singleapplication_p.cpp
index 3b41391..7a98116 100644
--- a/singleapplication_p.cpp
+++ b/singleapplication_p.cpp
@@ -57,7 +57,9 @@
#endif
#ifdef Q_OS_WIN
- #define NOMINMAX
+ #ifndef NOMINMAX
+ #define NOMINMAX 1
+ #endif
#include <windows.h>
#include <lmcons.h>
#endif