From af07fa846e3359486b82b3d688fc30d9d86b2588 Mon Sep 17 00:00:00 2001 From: Dorian Ros Date: Wed, 10 Jun 2026 19:41:47 +0200 Subject: [PATCH] Fix Modbus_win.cpp compilation under global WIN32_LEAN_AND_MEAN --- src/win/Modbus_win.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/win/Modbus_win.cpp b/src/win/Modbus_win.cpp index f7ebb69..237e028 100644 --- a/src/win/Modbus_win.cpp +++ b/src/win/Modbus_win.cpp @@ -2,10 +2,15 @@ #include +#ifndef WIN32_LEAN_AND_MEAN +#define WIN32_LEAN_AND_MEAN +#endif #include +#include #include #include #include +#include #include #define NANOSEC100_IN_MILLISEC 10000