fix build

This commit is contained in:
Arvid Norberg 2014-03-17 03:41:35 +00:00
parent c0b0f3d108
commit 369b1777d1
2 changed files with 6 additions and 3 deletions

View File

@ -73,8 +73,11 @@ namespace
s.add_extension(create_smart_ban_plugin);
else if (name == "lt_trackers")
s.add_extension(create_lt_trackers_plugin);
#ifndef TORRENT_NO_DEPRECATE
else if (name == "metadata_transfer")
s.add_extension(create_metadata_plugin);
#endif // TORRENT_NO_DEPRECATE
#endif // TORRENT_DISABLE_EXTENSIONS
}

View File

@ -1733,7 +1733,7 @@ namespace libtorrent
, num_blocks, prefer_whole_pieces, peer, speed, options);
}
#ifdef TORRENT_DEBUG
#if TORRENT_USE_INVARIANT_CHECKS
verify_pick(interesting_blocks, pieces);
verify_pick(backup_blocks, pieces);
verify_pick(backup_blocks2, pieces);
@ -1985,7 +1985,7 @@ namespace libtorrent
}
}
}
#ifdef TORRENT_DEBUG
#if TORRENT_USE_INVARIANT_CHECKS
verify_pick(interesting_blocks, pieces);
#endif
if (num_blocks <= 0) return 0;
@ -2092,7 +2092,7 @@ namespace libtorrent
if (int(backup_blocks.size()) >= num_blocks) return num_blocks;
#ifdef TORRENT_DEBUG
#if TORRENT_USE_INVARIANT_CHECKS
verify_pick(backup_blocks, pieces);
#endif
return num_blocks;