Network/Windows: Fix compilation with MinGW
Thanks to Maeiky Former-commit-id: 06501a2d834a10fad4db902b2a5015e6ac7a1fd8 [formerly f2ae3e67ba3fec2d8c740a4472b6fd32aa601a41] [formerly a13631a0e24cb5518e132d450c8d099f985d3fb2 [formerly 0b3ed439870f29acf33c6a6cfbbe8747fc3394ff]] Former-commit-id: 04e5439cd9d14ac7de4a5b126b0359aee42b0bd1 [formerly 6cab591aa8cf90d4ab3ddf6a883023caf1694b4d] Former-commit-id: fe7895dc9cd1c1f54a2c0b7df1d578220e06b180
This commit is contained in:
parent
e5218301b5
commit
34c1208202
|
|
@ -7,10 +7,8 @@
|
||||||
#include <Nazara/Core/Log.hpp>
|
#include <Nazara/Core/Log.hpp>
|
||||||
#include <Nazara/Network/Win32/IpAddressImpl.hpp>
|
#include <Nazara/Network/Win32/IpAddressImpl.hpp>
|
||||||
|
|
||||||
#include <Winsock2.h>
|
#if defined(NAZARA_COMPILER_MINGW) && __GNUC__ < 5
|
||||||
|
|
||||||
// Some compilers (olders versions of MinGW) are lacking Mstcpip.h which defines the following struct/#define
|
// Some compilers (olders versions of MinGW) are lacking Mstcpip.h which defines the following struct/#define
|
||||||
// Define them ourself for now
|
|
||||||
struct tcp_keepalive
|
struct tcp_keepalive
|
||||||
{
|
{
|
||||||
u_long onoff;
|
u_long onoff;
|
||||||
|
|
@ -19,6 +17,11 @@ struct tcp_keepalive
|
||||||
};
|
};
|
||||||
|
|
||||||
#define SIO_KEEPALIVE_VALS _WSAIOW(IOC_VENDOR,4)
|
#define SIO_KEEPALIVE_VALS _WSAIOW(IOC_VENDOR,4)
|
||||||
|
#else
|
||||||
|
#include <Mstcpip.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <Winsock2.h>
|
||||||
|
|
||||||
#include <Nazara/Network/Debug.hpp>
|
#include <Nazara/Network/Debug.hpp>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue