diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 08ddd13..1c34a9f 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -39,9 +39,9 @@
-
-
-
+
+
+
@@ -238,7 +238,7 @@
-
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3b76979..886d316 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -102,6 +102,11 @@ elseif (OMATH_THREAT_WARNING_AS_ERROR)
target_compile_options(${PROJECT_NAME} PRIVATE -Wall -Wextra -Wpedantic -Werror)
endif ()
+# Windows SDK redefine min/max via preprocessor and break std::min and std::max
+if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
+ target_compile_definitions(${PROJECT_NAME} INTERFACE NOMINMAX)
+endif ()
+
target_include_directories(${PROJECT_NAME}
PUBLIC
$ # Use this path when building the project
diff --git a/include/omath/color.hpp b/include/omath/color.hpp
index 4172062..f620807 100644
--- a/include/omath/color.hpp
+++ b/include/omath/color.hpp
@@ -8,14 +8,6 @@
#include "omath/vector4.hpp"
#include
-#ifdef max
-#undef max
-#endif
-
-#ifdef min
-#undef min
-#endif
-
namespace omath
{
struct Hsv