Fixed compile error with getaddrinfo with MinGW
This commit is contained in:
parent
34d866d4bc
commit
e60a61fed5
@ -28,6 +28,14 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
// Headers
|
// Headers
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
|
#ifdef _WIN32_WINDOWS
|
||||||
|
#undef _WIN32_WINDOWS
|
||||||
|
#endif
|
||||||
|
#ifdef _WIN32_WINNT
|
||||||
|
#undef _WIN32_WINNT
|
||||||
|
#endif
|
||||||
|
#define _WIN32_WINDOWS 0x0501
|
||||||
|
#define _WIN32_WINNT 0x0501
|
||||||
#include <SFML/Network/Socket.hpp>
|
#include <SFML/Network/Socket.hpp>
|
||||||
#include <winsock2.h>
|
#include <winsock2.h>
|
||||||
#include <ws2tcpip.h>
|
#include <ws2tcpip.h>
|
||||||
|
Loading…
Reference in New Issue
Block a user