Core: Clog Needs MINMAX define for Win32

Windows.h, otherwise we can get errors about the use of std::min
and std:max because of a conflict with macro definitions of "min"
and "max" in Windows.h. The reason for this being needed now and
not earlier is because of changes to an updated windows SDK
installed by a recent security update.

Pull Request: https://projects.blender.org/blender/blender/pulls/141696
This commit is contained in:
Harley Acheson
2025-07-10 18:15:54 +02:00
committed by Harley Acheson
parent f0d1af3836
commit 1d83c555fd

View File

@@ -29,6 +29,9 @@
#endif
#if defined(_MSC_VER)
# ifndef NOMINMAX
# define NOMINMAX
# endif
# include <Windows.h>
# include <VersionHelpers.h> /* This needs to be included after Windows.h. */