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.
This commit is contained in:
Nick Korotysh 2020-10-02 14:17:34 +03:00
parent 9a408690ce
commit 3230430311
No known key found for this signature in database
GPG Key ID: 7D0D4117C97CCC46

View File

@ -57,6 +57,7 @@
#endif
#ifdef Q_OS_WIN
#define NOMINMAX
#include <windows.h>
#include <lmcons.h>
#endif