From 6de68ad0fb5167469a6a8801d2cf9f62349291da Mon Sep 17 00:00:00 2001 From: Deji Date: Wed, 3 Jun 2026 12:11:44 +0100 Subject: [PATCH] Fix Windows.h min/max build issue --- ZHMModSDK/Include/Common.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/ZHMModSDK/Include/Common.h b/ZHMModSDK/Include/Common.h index d2295af2..9a635315 100644 --- a/ZHMModSDK/Include/Common.h +++ b/ZHMModSDK/Include/Common.h @@ -9,6 +9,22 @@ #include +#ifdef max +#undef max +#endif + +#ifdef min +#undef min +#endif + +#ifdef MAX +#undef MAX +#endif + +#ifdef MIN +#undef MIN +#endif + #if LOADER_EXPORTS # define ZHMSDK_API __declspec(dllexport) #else