Don't #define NOMINMAX when compiled with -DNOMINMAX

MSVC issues compile-time warning about redefining.

Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
Simon Rozman 2023-09-13 14:27:14 +02:00
parent 180f763184
commit f05bf56a61

View File

@ -6,7 +6,9 @@
#pragma once
#ifdef _WIN32
#ifndef NOMINMAX
#define NOMINMAX // Collides with std::min/max
#endif
#include <windows.h>
#include <intsafe.h>
#include <oaidl.h>