From 1d83c555fd03dc233002e79fb82dbc0e04fbc129 Mon Sep 17 00:00:00 2001 From: Harley Acheson Date: Thu, 10 Jul 2025 18:15:54 +0200 Subject: [PATCH] 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 --- intern/clog/clog.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/intern/clog/clog.cc b/intern/clog/clog.cc index d62f0d3c6b7..f9913b51e55 100644 --- a/intern/clog/clog.cc +++ b/intern/clog/clog.cc @@ -29,6 +29,9 @@ #endif #if defined(_MSC_VER) +# ifndef NOMINMAX +# define NOMINMAX +# endif # include # include /* This needs to be included after Windows.h. */