From 4957189285149e707a06e8c28827134b48c2b8d7 Mon Sep 17 00:00:00 2001 From: Ervin Hegedus Date: Sun, 20 Jul 2025 23:14:43 +0200 Subject: [PATCH] Suppress min/max macro's if Windows is the target --- headers/modsecurity/rules_set_properties.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/headers/modsecurity/rules_set_properties.h b/headers/modsecurity/rules_set_properties.h index 904e140f..9b1b8345 100644 --- a/headers/modsecurity/rules_set_properties.h +++ b/headers/modsecurity/rules_set_properties.h @@ -13,6 +13,14 @@ * */ +#ifdef WIN32 +#ifdef max +#undef max +#endif +#ifdef min +#undef min +#endif +#endif #ifdef __cplusplus #include