fix build
This commit is contained in:
parent
c0b0f3d108
commit
369b1777d1
|
@ -73,8 +73,11 @@ namespace
|
||||||
s.add_extension(create_smart_ban_plugin);
|
s.add_extension(create_smart_ban_plugin);
|
||||||
else if (name == "lt_trackers")
|
else if (name == "lt_trackers")
|
||||||
s.add_extension(create_lt_trackers_plugin);
|
s.add_extension(create_lt_trackers_plugin);
|
||||||
|
#ifndef TORRENT_NO_DEPRECATE
|
||||||
else if (name == "metadata_transfer")
|
else if (name == "metadata_transfer")
|
||||||
s.add_extension(create_metadata_plugin);
|
s.add_extension(create_metadata_plugin);
|
||||||
|
#endif // TORRENT_NO_DEPRECATE
|
||||||
|
|
||||||
#endif // TORRENT_DISABLE_EXTENSIONS
|
#endif // TORRENT_DISABLE_EXTENSIONS
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1733,7 +1733,7 @@ namespace libtorrent
|
||||||
, num_blocks, prefer_whole_pieces, peer, speed, options);
|
, num_blocks, prefer_whole_pieces, peer, speed, options);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef TORRENT_DEBUG
|
#if TORRENT_USE_INVARIANT_CHECKS
|
||||||
verify_pick(interesting_blocks, pieces);
|
verify_pick(interesting_blocks, pieces);
|
||||||
verify_pick(backup_blocks, pieces);
|
verify_pick(backup_blocks, pieces);
|
||||||
verify_pick(backup_blocks2, 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);
|
verify_pick(interesting_blocks, pieces);
|
||||||
#endif
|
#endif
|
||||||
if (num_blocks <= 0) return 0;
|
if (num_blocks <= 0) return 0;
|
||||||
|
@ -2092,7 +2092,7 @@ namespace libtorrent
|
||||||
|
|
||||||
if (int(backup_blocks.size()) >= num_blocks) return num_blocks;
|
if (int(backup_blocks.size()) >= num_blocks) return num_blocks;
|
||||||
|
|
||||||
#ifdef TORRENT_DEBUG
|
#if TORRENT_USE_INVARIANT_CHECKS
|
||||||
verify_pick(backup_blocks, pieces);
|
verify_pick(backup_blocks, pieces);
|
||||||
#endif
|
#endif
|
||||||
return num_blocks;
|
return num_blocks;
|
||||||
|
|
Loading…
Reference in New Issue