Fixes MSVC redefinition of min/max

Adds a compiler definition for MSVC to prevent redefinition of min/max macros by the Windows SDK.

Removes unnecessary undef directives in color.hpp as the NOMINMAX definition now handles the issue.
This commit is contained in:
2025-08-21 00:17:59 +03:00
parent 2d9ed4cfc8
commit 625c676010
3 changed files with 9 additions and 12 deletions

View File

@@ -8,14 +8,6 @@
#include "omath/vector4.hpp"
#include <cstdint>
#ifdef max
#undef max
#endif
#ifdef min
#undef min
#endif
namespace omath
{
struct Hsv