diff --git a/src/asio.cpp b/src/asio.cpp index 54c9aa244..14ad9bcd9 100644 --- a/src/asio.cpp +++ b/src/asio.cpp @@ -5,7 +5,16 @@ #define BOOST_ASIO_SOURCE #endif -#if BOOST_VERSION >= 104500 +#ifdef _MSC_VER + +// on windows; including timer_queue.hpp results in an +// actual link-time dependency on boost.date_time, even +// though it's never referenced. So, avoid that on windows. +// on Mac OS X and Linux, not including it results in +// missing symbols. For some reason, this current setup +// works, at least across windows, Linux and Mac OS X. +// In the future this hack can be fixed by disabling +// use of boost.date_time in boost.asio #include @@ -63,7 +72,12 @@ #include #endif +#else // _MSC_VER + +#if BOOST_VERSION >= 104500 +#include #elif BOOST_VERSION >= 104400 #include #endif +#endif