// builds all boost.asio source as a separate compilation unit #include #ifndef BOOST_ASIO_SOURCE #define BOOST_ASIO_SOURCE #endif #if _MSC_VER > 1310 && defined TORRENT_NO_BOOST_DATE_TIME // 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 // if TORRENT_NO_BOOST_DATE_TIME is not defined, it's // fine to include everything, including pulling in // the boost.date_time dependency via asio #include #if defined(BOOST_ASIO_HEADER_ONLY) # error Do not compile Asio library source with BOOST_ASIO_HEADER_ONLY defined #endif #include #include #include #include #include #include #include #if BOOST_VERSION >= 104700 #include #include #include #endif #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #if defined TORRENT_USE_OPENSSL #include #endif #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #if BOOST_VERSION >= 104900 #include #endif #else // _MSC_VER #if BOOST_VERSION >= 104500 #include #elif BOOST_VERSION >= 104400 #include #endif #endif