fix MSVC warnings about macro redefinition

There are several places in the code where it's already done similar.
This commit is contained in:
Anonymissimus 2012-03-28 18:15:23 +00:00
parent 593e98090c
commit 76afa8f4b5

View file

@ -18,6 +18,15 @@
#ifdef _WIN32
#define BOOST_ASIO_DISABLE_IOCP
#ifdef INADDR_ANY
#undef INADDR_ANY
#endif
#ifdef INADDR_BROADCAST
#undef INADDR_BROADCAST
#endif
#ifdef INADDR_NONE
#undef INADDR_NONE
#endif
#endif
#include <boost/asio.hpp>
#include <boost/optional.hpp>