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

8
.idea/workspace.xml generated
View File

@@ -39,9 +39,9 @@
</component>
<component name="ChangeListManager">
<list default="true" id="24dcf302-ac9d-40e6-8317-7203a956ad63" name="Changes" comment="">
<change beforePath="$PROJECT_DIR$/.gitignore" beforeDir="false" afterPath="$PROJECT_DIR$/.gitignore" afterDir="false" />
<change beforePath="$PROJECT_DIR$/tests/general/unit_test_angles.cpp" beforeDir="false" afterPath="$PROJECT_DIR$/tests/general/unit_test_angles.cpp" afterDir="false" />
<change beforePath="$PROJECT_DIR$/tests/general/unit_test_color.cpp" beforeDir="false" afterPath="$PROJECT_DIR$/tests/general/unit_test_color.cpp" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/CMakeLists.txt" beforeDir="false" afterPath="$PROJECT_DIR$/CMakeLists.txt" afterDir="false" />
<change beforePath="$PROJECT_DIR$/include/omath/color.hpp" beforeDir="false" afterPath="$PROJECT_DIR$/include/omath/color.hpp" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -238,7 +238,7 @@
<workItem from="1752302256186" duration="714000" />
<workItem from="1753455801202" duration="1091000" />
<workItem from="1755627102717" duration="301000" />
<workItem from="1755723773366" duration="421000" />
<workItem from="1755723773366" duration="852000" />
</task>
<servers />
</component>