fix build without deprecated functions

This commit is contained in:
Arvid Norberg 2012-06-14 15:16:59 +00:00
parent e19f1d8efe
commit b623d952e6
1 changed files with 4 additions and 3 deletions

View File

@ -96,8 +96,8 @@ namespace libtorrent
return ret;
}
#ifndef BOOST_NO_EXCEPTIONS
#ifndef TORRENT_NO_DEPRECATE
#ifndef BOOST_NO_EXCEPTIONS
torrent_handle add_magnet_uri(session& ses, std::string const& uri
, std::string const& save_path
, storage_mode_t storage_mode
@ -127,7 +127,6 @@ namespace libtorrent
, name.empty() ? 0 : name.c_str(), save_path, entry()
, storage_mode, paused, sc, userdata);
}
#endif
torrent_handle add_magnet_uri(session& ses, std::string const& uri
, add_torrent_params p)
@ -137,7 +136,7 @@ namespace libtorrent
if (ec) throw libtorrent_exception(ec);
return ret;
}
#endif
#endif // BOOST_NO_EXCEPTIONS
torrent_handle add_magnet_uri(session& ses, std::string const& uri
, add_torrent_params p, error_code& ec)
@ -147,6 +146,8 @@ namespace libtorrent
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)
{
std::string name;