some windows fixes for dynamic linking
This commit is contained in:
parent
3cf34e3a91
commit
6ca1c191b6
|
@ -89,12 +89,12 @@ namespace libtorrent
|
||||||
class upnp;
|
class upnp;
|
||||||
class natpmp;
|
class natpmp;
|
||||||
class lsd;
|
class lsd;
|
||||||
class fingerprint;
|
struct fingerprint;
|
||||||
class torrent;
|
class torrent;
|
||||||
|
|
||||||
namespace dht
|
namespace dht
|
||||||
{
|
{
|
||||||
class dht_tracker;
|
struct dht_tracker;
|
||||||
};
|
};
|
||||||
|
|
||||||
namespace aux
|
namespace aux
|
||||||
|
|
|
@ -53,6 +53,7 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||||
#elif defined(BOOST_MSVC)
|
#elif defined(BOOST_MSVC)
|
||||||
|
|
||||||
#pragma warning(disable: 4258)
|
#pragma warning(disable: 4258)
|
||||||
|
#pragma warning(disable: 4251)
|
||||||
|
|
||||||
# if defined(TORRENT_BUILDING_SHARED)
|
# if defined(TORRENT_BUILDING_SHARED)
|
||||||
# define TORRENT_EXPORT __declspec(dllexport)
|
# define TORRENT_EXPORT __declspec(dllexport)
|
||||||
|
|
|
@ -47,7 +47,7 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||||
namespace libtorrent
|
namespace libtorrent
|
||||||
{
|
{
|
||||||
|
|
||||||
class connection_queue : public boost::noncopyable
|
class TORRENT_EXPORT connection_queue : public boost::noncopyable
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
connection_queue(io_service& ios);
|
connection_queue(io_service& ios);
|
||||||
|
|
|
@ -40,8 +40,8 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||||
namespace libtorrent
|
namespace libtorrent
|
||||||
{
|
{
|
||||||
|
|
||||||
namespace aux { class session_impl; }
|
namespace aux { struct session_impl; }
|
||||||
class disk_buffer_pool;
|
struct disk_buffer_pool;
|
||||||
|
|
||||||
struct TORRENT_EXPORT disk_buffer_holder
|
struct TORRENT_EXPORT disk_buffer_holder
|
||||||
{
|
{
|
||||||
|
|
|
@ -93,7 +93,7 @@ namespace libtorrent
|
||||||
{ return boost::system::error_condition(ev, *this); }
|
{ return boost::system::error_condition(ev, *this); }
|
||||||
};
|
};
|
||||||
|
|
||||||
extern libtorrent_error_category libtorrent_category;
|
extern TORRENT_EXPORT libtorrent_error_category libtorrent_category;
|
||||||
|
|
||||||
using boost::system::error_code;
|
using boost::system::error_code;
|
||||||
inline boost::system::error_category const& get_system_category()
|
inline boost::system::error_category const& get_system_category()
|
||||||
|
|
|
@ -47,7 +47,7 @@ namespace libtorrent
|
||||||
// std::string: error message
|
// std::string: error message
|
||||||
typedef boost::function<void(int, int, std::string const&)> portmap_callback_t;
|
typedef boost::function<void(int, int, std::string const&)> portmap_callback_t;
|
||||||
|
|
||||||
class natpmp : public intrusive_ptr_base<natpmp>
|
class TORRENT_EXPORT natpmp : public intrusive_ptr_base<natpmp>
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
natpmp(io_service& ios, address const& listen_interface, portmap_callback_t const& cb);
|
natpmp(io_service& ios, address const& listen_interface, portmap_callback_t const& cb);
|
||||||
|
|
|
@ -62,7 +62,7 @@ namespace libtorrent
|
||||||
// an informational log message
|
// an informational log message
|
||||||
typedef boost::function<void(int, int, std::string const&)> portmap_callback_t;
|
typedef boost::function<void(int, int, std::string const&)> portmap_callback_t;
|
||||||
|
|
||||||
class upnp : public intrusive_ptr_base<upnp>
|
class TORRENT_EXPORT upnp : public intrusive_ptr_base<upnp>
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
upnp(io_service& ios, connection_queue& cc
|
upnp(io_service& ios, connection_queue& cc
|
||||||
|
|
|
@ -76,7 +76,7 @@ namespace libtorrent
|
||||||
return msgs[ev];
|
return msgs[ev];
|
||||||
}
|
}
|
||||||
|
|
||||||
libtorrent_error_category libtorrent_category;
|
TORRENT_EXPORT libtorrent_error_category libtorrent_category;
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
|
|
|
@ -39,7 +39,7 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||||
namespace libtorrent
|
namespace libtorrent
|
||||||
{
|
{
|
||||||
class alert;
|
class alert;
|
||||||
class add_torrent_params;
|
struct add_torrent_params;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool print_alerts(libtorrent::session& ses, char const* name
|
bool print_alerts(libtorrent::session& ses, char const* name
|
||||||
|
|
Loading…
Reference in New Issue