From b623d952e6316379a0e757223e5215356e7cb3b6 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Thu, 14 Jun 2012 15:16:59 +0000 Subject: [PATCH] fix build without deprecated functions --- src/magnet_uri.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/magnet_uri.cpp b/src/magnet_uri.cpp index b9b936735..30b126595 100644 --- a/src/magnet_uri.cpp +++ b/src/magnet_uri.cpp @@ -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;