From 800bb858a816655169b219d2a1b8393e3dfc58c4 Mon Sep 17 00:00:00 2001 From: iakov Date: Tue, 6 Oct 2020 13:56:20 +0300 Subject: 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 --- singleapplication_p.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'singleapplication_p.cpp') 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 #include #endif -- cgit v1.2.1