From 6a4143249812fbcf9023bd653c4d7acbdeba34b8 Mon Sep 17 00:00:00 2001 From: Soren Ptak Date: Tue, 28 Nov 2023 15:16:16 -0500 Subject: [PATCH] Upgrade msvc port to winsock2 (#895) * Add the changes needed to the MSVC windows port to get it to build with winsock2.h * Rely upon the WIN32_LEAN_AND_MEAN define to include winsock2.h --- portable/MSVC-MingW/portmacro.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/portable/MSVC-MingW/portmacro.h b/portable/MSVC-MingW/portmacro.h index d153007728f..48a8bf4b086 100644 --- a/portable/MSVC-MingW/portmacro.h +++ b/portable/MSVC-MingW/portmacro.h @@ -29,7 +29,15 @@ #ifndef PORTMACRO_H #define PORTMACRO_H +#ifdef WIN32_LEAN_AND_MEAN + #include +#else + #include +#endif + #include +#include +#include #include /******************************************************************************