fixed no-deprecate build

This commit is contained in:
Arvid Norberg 2012-03-09 06:34:23 +00:00
parent b58a96d76b
commit 3442534085
2 changed files with 2 additions and 2 deletions

View File

@ -1260,7 +1260,7 @@ int main(int argc, char* argv[])
if (seed_mode) p.flags |= add_torrent_params::flag_seed_mode; if (seed_mode) p.flags |= add_torrent_params::flag_seed_mode;
if (disable_storage) p.storage = disabled_storage_constructor; if (disable_storage) p.storage = disabled_storage_constructor;
if (share_mode) p.flags |= add_torrent_params::flag_share_mode; if (share_mode) p.flags |= add_torrent_params::flag_share_mode;
p.tracker_url = argv[i] + 41; p.trackers.push_back(argv[i] + 41);
p.info_hash = info_hash; p.info_hash = info_hash;
p.save_path = save_path; p.save_path = save_path;
p.storage_mode = (storage_mode_t)allocation_mode; p.storage_mode = (storage_mode_t)allocation_mode;

View File

@ -95,8 +95,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