Fix MVSC compiler warning about macro redefinition

This commit is contained in:
Jyrki Vesterinen 2018-02-21 19:41:16 +02:00
parent f96b9d2bba
commit 7f91caf57f

View file

@ -16,10 +16,6 @@
#ifdef _WIN32
// MSVC compilation throws deprecation warnings on boost's use of gethostbyaddr and
// gethostbyname in socket_ops.ipp. This define silences that.
#define _WINSOCK_DEPRECATED_NO_WARNINGS
#if _WIN32_WINNT < _WIN32_WINNT_VISTA
#define BOOST_ASIO_DISABLE_IOCP
#endif