From 84148586e53f4bd4f3177a98c7f201f63245fd99 Mon Sep 17 00:00:00 2001 From: mstembera <5421953+mstembera@users.noreply.github.com> Date: Tue, 4 Nov 2025 21:27:33 -0800 Subject: [PATCH] Fix MSVC compile broken after Shared Memory patch. closes https://github.com/official-stockfish/Stockfish/pull/6397 No functional change --- src/memory.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/memory.h b/src/memory.h index b9be6f170..dad07df1d 100644 --- a/src/memory.h +++ b/src/memory.h @@ -41,6 +41,13 @@ #endif #include + // Some Windows headers (RPC/old headers) define short macros such + // as 'small' expanding to 'char', which breaks identifiers in the code. + // Undefine those macros immediately after including . + #ifdef small + #undef small + #endif + #include extern "C" {