diff --git a/src/network_asio.hpp b/src/network_asio.hpp index 3be8bfb9f04b2..6686e357ddff7 100644 --- a/src/network_asio.hpp +++ b/src/network_asio.hpp @@ -16,7 +16,9 @@ #ifdef _WIN32 +#if _WIN32_WINNT == _WIN32_WINNT_WINXP #define BOOST_ASIO_DISABLE_IOCP +#endif #ifdef INADDR_ANY #undef INADDR_ANY diff --git a/src/wesnothd_connection.hpp b/src/wesnothd_connection.hpp index b42aba6472ae5..bddd5720a45b9 100644 --- a/src/wesnothd_connection.hpp +++ b/src/wesnothd_connection.hpp @@ -20,7 +20,9 @@ // gethostbyname in socket_ops.ipp. This define silences that. #define _WINSOCK_DEPRECATED_NO_WARNINGS +#if _WIN32_WINNT == _WIN32_WINNT_WINXP #define BOOST_ASIO_DISABLE_IOCP +#endif #ifdef INADDR_ANY #undef INADDR_ANY