fix build without deprecated functions
This commit is contained in:
parent
e19f1d8efe
commit
b623d952e6
|
@ -96,8 +96,8 @@ namespace libtorrent
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef BOOST_NO_EXCEPTIONS
|
|
||||||
#ifndef TORRENT_NO_DEPRECATE
|
#ifndef TORRENT_NO_DEPRECATE
|
||||||
|
#ifndef BOOST_NO_EXCEPTIONS
|
||||||
torrent_handle add_magnet_uri(session& ses, std::string const& uri
|
torrent_handle add_magnet_uri(session& ses, std::string const& uri
|
||||||
, std::string const& save_path
|
, std::string const& save_path
|
||||||
, storage_mode_t storage_mode
|
, storage_mode_t storage_mode
|
||||||
|
@ -127,7 +127,6 @@ namespace libtorrent
|
||||||
, name.empty() ? 0 : name.c_str(), save_path, entry()
|
, name.empty() ? 0 : name.c_str(), save_path, entry()
|
||||||
, storage_mode, paused, sc, userdata);
|
, storage_mode, paused, sc, userdata);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
torrent_handle add_magnet_uri(session& ses, std::string const& uri
|
torrent_handle add_magnet_uri(session& ses, std::string const& uri
|
||||||
, add_torrent_params p)
|
, add_torrent_params p)
|
||||||
|
@ -137,7 +136,7 @@ namespace libtorrent
|
||||||
if (ec) throw libtorrent_exception(ec);
|
if (ec) throw libtorrent_exception(ec);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
#endif
|
#endif // BOOST_NO_EXCEPTIONS
|
||||||
|
|
||||||
torrent_handle add_magnet_uri(session& ses, std::string const& uri
|
torrent_handle add_magnet_uri(session& ses, std::string const& uri
|
||||||
, add_torrent_params p, error_code& ec)
|
, add_torrent_params p, error_code& ec)
|
||||||
|
@ -147,6 +146,8 @@ namespace libtorrent
|
||||||
return ses.add_torrent(p, ec);
|
return ses.add_torrent(p, ec);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif // TORRENT_NO_DEPRECATE
|
||||||
|
|
||||||
void parse_magnet_uri(std::string const& uri, add_torrent_params& p, error_code& ec)
|
void parse_magnet_uri(std::string const& uri, add_torrent_params& p, error_code& ec)
|
||||||
{
|
{
|
||||||
std::string name;
|
std::string name;
|
||||||
|
|
Loading…
Reference in New Issue