some boost 1.34 preprocessor conditions and fixed assert in piece_picker

This commit is contained in:
Arvid Norberg
2007-04-23 17:14:40 +00:00
parent e5a20b8de6
commit 094dc1065c
5 changed files with 11 additions and 4 deletions

View File

@@ -328,7 +328,6 @@ typedef std::multimap<std::string, libtorrent::torrent_handle> handles_t;
using boost::bind;
using boost::filesystem::path;
using boost::filesystem::exists;
using boost::filesystem::no_check;
using boost::filesystem::directory_iterator;
using boost::filesystem::extension;
@@ -443,7 +442,10 @@ void scan_dir(path const& dir_path
int main(int ac, char* av[])
{
#if BOOST_VERSION < 103400
using boost::filesystem::no_check;
path::default_name_check(no_check);
#endif
int listen_port;
float preferred_ratio;