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;

View File

@@ -49,8 +49,9 @@ int main(int argc, char* argv[])
std::cerr << "usage: dump_torrent torrent-file\n";
return 1;
}
#if BOOST_VERSION < 103400
boost::filesystem::path::default_name_check(boost::filesystem::no_check);
#endif
try
{

View File

@@ -45,9 +45,10 @@ POSSIBILITY OF SUCH DAMAGE.
int main(int argc, char* argv[])
{
using namespace libtorrent;
#if BOOST_VERSION < 103400
namespace fs = boost::filesystem;
fs::path::default_name_check(fs::no_check);
#endif
if (argc != 2)
{