From 467c34644861a5267601255650e27c7aadab31dc Mon Sep 17 00:00:00 2001 From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> Date: Thu, 22 Oct 2020 18:21:47 +0300 Subject: [PATCH] net: Drop unneeded Windows headers in compat.h No interface from the mswsock.h header is used. According to https://docs.microsoft.com/en-us/windows/win32/winsock/creating-a-basic-winsock-application "The Winsock2.h header file internally includes core elements from the Windows.h header file, so there is not usually an #include line for the Windows.h header file in Winsock applications." --- src/compat.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/compat.h b/src/compat.h index 0be02cae03e..5fa65897921 100644 --- a/src/compat.h +++ b/src/compat.h @@ -18,11 +18,7 @@ #undef FD_SETSIZE // prevent redefinition compiler warning #endif #define FD_SETSIZE 1024 // max number of fds in fd_set - -#include // Must be included before mswsock.h and windows.h - -#include -#include +#include #include #include #else