refs #207, fixed windows.h / NOMINMAX.

Depending on the build setup (config.pri) missing NOMINMAX caused warning, or already existing NOMINMAX caused warning
This commit is contained in:
Klaus Basan
2014-04-14 11:23:33 +02:00
parent e474671ead
commit 9db245c843
7 changed files with 24 additions and 7 deletions

View File

@@ -8,7 +8,10 @@
// though it does not make sense to be used on non WIN machines.
// But it allows parts as GUI to comile
#ifdef Q_OS_WIN
#include <windows.h>
#ifndef NOMINMAX
#define NOMINMAX
#endif
#include <Windows.h>
#else
typedef unsigned long DWORD;
#endif