fix MSVC warnings about macro redefinition
There are several places in the code where it's already done similar.
This commit is contained in:
parent
593e98090c
commit
76afa8f4b5
1 changed files with 9 additions and 0 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue