From 6602a25188a57e313b37485e6e2f2f9cb54fa934 Mon Sep 17 00:00:00 2001 From: neru Date: Fri, 19 Jun 2026 10:36:53 -0300 Subject: [PATCH] fix: prevent NOMINMAX redef --- src/proxy/tinymitm/proxy.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/proxy/tinymitm/proxy.cpp b/src/proxy/tinymitm/proxy.cpp index 6bb75ce..a0f9559 100644 --- a/src/proxy/tinymitm/proxy.cpp +++ b/src/proxy/tinymitm/proxy.cpp @@ -6,7 +6,10 @@ #if defined(_WIN64) || defined(_WIN32) #define FD_SETSIZE 1024 - #define NOMINMAX + + #ifndef NOMINMAX + #define NOMINMAX + #endif #include #include @@ -14,7 +17,6 @@ #define CLOSE_SOCKET closesocket #define SHUT_RDWR SD_BOTH #endif - #include #include #include "ssl.h"