From 0f2a8583063529597d5dc096c54ea3d3a01b7da7 Mon Sep 17 00:00:00 2001 From: Orange Date: Sat, 29 Mar 2025 21:57:35 +0300 Subject: [PATCH] fixed in some cases confilcting with win api --- include/omath/color.hpp | 9 +++++++++ include/omath/mat.hpp | 10 ++++++++++ 2 files changed, 19 insertions(+) diff --git a/include/omath/color.hpp b/include/omath/color.hpp index c6a7263..48a02df 100644 --- a/include/omath/color.hpp +++ b/include/omath/color.hpp @@ -8,6 +8,15 @@ #include "omath/vector3.hpp" #include "omath/vector4.hpp" +#ifdef max +#undef max +#endif + + +#ifdef min +#undef min +#endif + namespace omath { struct HSV diff --git a/include/omath/mat.hpp b/include/omath/mat.hpp index 09252cd..2116cf7 100644 --- a/include/omath/mat.hpp +++ b/include/omath/mat.hpp @@ -10,6 +10,16 @@ #include #include "omath/vector3.hpp" + +#ifdef near +#undef near +#endif + + +#ifdef far +#undef fa +#endif + namespace omath { struct MatSize