From 134063a87d80e8382553e98a92726e517ff8685a Mon Sep 17 00:00:00 2001 From: Lynix Date: Sun, 28 Aug 2016 01:09:40 +0200 Subject: [PATCH] Network/SocketImpl: Fix compilation for recent MinGW versions Former-commit-id: b32cdfc7c9341b56a2534f49304ed6a40889ef65 [formerly be0dcc051b3714196a74c2639d61f3377b1732cf] [formerly 4a3c9b84f8d4b5c55f3fe086df6609b9198ff2a0 [formerly d07e788c4b54277aa726e82810c36c64dae14084]] Former-commit-id: f71fe5191f9470facf8669ebd89ff86f8b9be9dc [formerly 96f25b63a8bb4ffa5523dd972bf2a24b8df80269] Former-commit-id: f1beb415423a8babbe61e95c3fe35ad9456c6622 --- src/Nazara/Network/Win32/SocketImpl.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/Nazara/Network/Win32/SocketImpl.cpp b/src/Nazara/Network/Win32/SocketImpl.cpp index ab7ba7fe3..f35a4a078 100644 --- a/src/Nazara/Network/Win32/SocketImpl.cpp +++ b/src/Nazara/Network/Win32/SocketImpl.cpp @@ -8,8 +8,9 @@ #include #include -#ifdef NAZARA_COMPILER_MINGW -// MinGW is lacking Mstcpip.h and that's too bad + +// Some compilers (olders versions of MinGW) are lacking Mstcpip.h which defines the following struct/#define +// Define them ourself for now struct tcp_keepalive { u_long onoff; @@ -18,9 +19,6 @@ struct tcp_keepalive }; #define SIO_KEEPALIVE_VALS _WSAIOW(IOC_VENDOR,4) -#else - #include -#endif // NAZARA_COMPILER_MINGW #include