aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriakov <iakov@users.noreply.github.com>2020-10-06 13:56:20 +0300
committerGitHub <noreply@github.com>2020-10-06 13:56:20 +0300
commit800bb858a816655169b219d2a1b8393e3dfc58c4 (patch)
treea2f217f92c047c288f764b2f7f4b4a613558ac34
parentMerge pull request #111 from jonaski/connecttoprimary (diff)
downloadsingleapplication-800bb858a816655169b219d2a1b8393e3dfc58c4.tar.xz
Fix build issue with MinGW GCC pedantic mode
Without guard this define from https://github.com/itay-grudev/SingleApplication/commit/3230430311c3b9d027a0ef23c3657eed3caaa696#diff-35c7c4188004bde084344a3aa8eeab6dR60 introduced compilation warning/error, and can break compilation
-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