Fix MSVC compile

broken after Shared Memory patch.

closes https://github.com/official-stockfish/Stockfish/pull/6397

No functional change
This commit is contained in:
mstembera
2025-11-13 22:21:35 +01:00
committed by Joost VandeVondele
parent fa4f05d3ef
commit 84148586e5
+7
View File
@@ -41,6 +41,13 @@
#endif
#include <windows.h>
// 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 <windows.h>.
#ifdef small
#undef small
#endif
#include <psapi.h>
extern "C" {