diff options
author | iakov <iakov@users.noreply.github.com> | 2020-10-06 13:56:20 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-06 13:56:20 +0300 |
commit | 800bb858a816655169b219d2a1b8393e3dfc58c4 (patch) | |
tree | a2f217f92c047c288f764b2f7f4b4a613558ac34 | |
parent | Merge pull request #111 from jonaski/connecttoprimary (diff) | |
download | singleapplication-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.cpp | 4 |
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 |