forked from premiere/premiere-libtorrent
Fixed building issues on windows with msvc-8.0
This commit is contained in:
parent
067219d14a
commit
90bff3d1ca
4
Jamfile
4
Jamfile
|
@ -123,8 +123,6 @@ else
|
||||||
SOURCES += file ;
|
SOURCES += file ;
|
||||||
}
|
}
|
||||||
|
|
||||||
lib openssl_lib : : <name>crypto ;
|
|
||||||
|
|
||||||
project torrent
|
project torrent
|
||||||
|
|
||||||
: requirements
|
: requirements
|
||||||
|
@ -181,6 +179,6 @@ lib torrent
|
||||||
<dht-support>on:<source>src/$(KADEMLIA_SOURCES).cpp
|
<dht-support>on:<source>src/$(KADEMLIA_SOURCES).cpp
|
||||||
<dht-support>logging:<source>src/$(KADEMLIA_SOURCES).cpp
|
<dht-support>logging:<source>src/$(KADEMLIA_SOURCES).cpp
|
||||||
<openssl>off:<source>src/sha1.cpp
|
<openssl>off:<source>src/sha1.cpp
|
||||||
<openssl>on:<library>openssl_lib
|
<openssl>on:<library>crypto
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
|
@ -75,7 +75,7 @@ namespace detail
|
||||||
// a filter for a specific address type.
|
// a filter for a specific address type.
|
||||||
// it works with IPv4 and IPv6
|
// it works with IPv4 and IPv6
|
||||||
template<class Addr>
|
template<class Addr>
|
||||||
class filter_impl
|
class TORRENT_EXPORT filter_impl
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
|
|
@ -135,7 +135,7 @@ catch (std::exception& e)
|
||||||
m_log << msg.str() << std::endl;
|
m_log << msg.str() << std::endl;
|
||||||
#endif
|
#endif
|
||||||
m_callback(0, 0, msg.str());
|
m_callback(0, 0, msg.str());
|
||||||
}
|
};
|
||||||
|
|
||||||
void natpmp::set_mappings(int tcp, int udp)
|
void natpmp::set_mappings(int tcp, int udp)
|
||||||
{
|
{
|
||||||
|
@ -200,7 +200,7 @@ void natpmp::send_map_request(int i) try
|
||||||
catch (std::exception& e)
|
catch (std::exception& e)
|
||||||
{
|
{
|
||||||
std::string err = e.what();
|
std::string err = e.what();
|
||||||
}
|
};
|
||||||
|
|
||||||
void natpmp::resend_request(int i, asio::error_code const& e)
|
void natpmp::resend_request(int i, asio::error_code const& e)
|
||||||
{
|
{
|
||||||
|
|
|
@ -144,7 +144,7 @@ catch (std::exception& e)
|
||||||
std::stringstream msg;
|
std::stringstream msg;
|
||||||
msg << "UPnP portmapping disabled: " << e.what();
|
msg << "UPnP portmapping disabled: " << e.what();
|
||||||
m_callback(0, 0, msg.str());
|
m_callback(0, 0, msg.str());
|
||||||
}
|
};
|
||||||
|
|
||||||
void upnp::discover_device()
|
void upnp::discover_device()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue