2012-03-15 07:08:08 +01:00
|
|
|
// builds all boost.asio source as a separate compilation unit
|
2012-04-11 18:35:16 +02:00
|
|
|
#include <boost/version.hpp>
|
|
|
|
|
2012-06-28 18:59:57 +02:00
|
|
|
#ifndef BOOST_ASIO_SOURCE
|
|
|
|
#define BOOST_ASIO_SOURCE
|
|
|
|
#endif
|
|
|
|
|
2012-12-15 06:09:11 +01:00
|
|
|
#include "libtorrent/config.hpp"
|
|
|
|
|
|
|
|
#define TORRENT_HAS_ASIO_DECL x ## BOOST_ASIO_DECL
|
|
|
|
|
|
|
|
// only define BOOST_ASIO_DECL if it hasn't already been defined
|
|
|
|
// or if it has been defined to an empty string
|
|
|
|
#if TORRENT_HAS_ASIO_DECL == x
|
|
|
|
#define BOOST_ASIO_DECL BOOST_SYMBOL_EXPORT
|
|
|
|
#endif
|
|
|
|
|
2012-07-04 18:05:31 +02:00
|
|
|
#if BOOST_VERSION >= 104500
|
|
|
|
#include <boost/asio/impl/src.hpp>
|
2012-05-26 18:21:15 +02:00
|
|
|
#elif BOOST_VERSION >= 104400
|
|
|
|
#include <boost/asio/impl/src.cpp>
|
2012-04-11 18:35:16 +02:00
|
|
|
#endif
|
2012-03-15 07:08:08 +01:00
|
|
|
|