From 29063abc6df2623902267616cbf236b69c266760 Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Fri, 20 Jun 2025 14:14:40 +0200 Subject: [PATCH] control_socket: suppress Windows warning winsock2.h (include from utils/net.h) should be included prior to windows.h, otherwise windows.h includes winsock.h (version 1), that is incompatible. WIN32_LEAN_AND_MEAN causes some headers not being included with windows.h (including winsock.h). --- src/control_socket.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/control_socket.cpp b/src/control_socket.cpp index a0082608e..019c6dd36 100644 --- a/src/control_socket.cpp +++ b/src/control_socket.cpp @@ -45,6 +45,7 @@ #include // for atoi, free, malloc, abort, strtoll #include // for strlen, NULL, strncpy, strchr, strcmp #ifdef _WIN32 +#define WIN32_LEAN_AND_MEAN #include #else #include // for fcntl, F_SETFL, O_NONBLOCK