From e60a61fed592240190a8e9a9bd160c609f9408cf Mon Sep 17 00:00:00 2001 From: Laurent Gomila Date: Sun, 23 Jun 2013 19:48:09 +0200 Subject: [PATCH] Fixed compile error with getaddrinfo with MinGW --- src/SFML/Network/Win32/SocketImpl.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/SFML/Network/Win32/SocketImpl.hpp b/src/SFML/Network/Win32/SocketImpl.hpp index 7d4162c6..b5758697 100644 --- a/src/SFML/Network/Win32/SocketImpl.hpp +++ b/src/SFML/Network/Win32/SocketImpl.hpp @@ -28,6 +28,14 @@ //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// +#ifdef _WIN32_WINDOWS + #undef _WIN32_WINDOWS +#endif +#ifdef _WIN32_WINNT + #undef _WIN32_WINNT +#endif +#define _WIN32_WINDOWS 0x0501 +#define _WIN32_WINNT 0x0501 #include #include #include