fixed boost-compatibility

This commit is contained in:
Arvid Norberg 2008-10-04 06:56:51 +00:00
parent d4c206841b
commit 7157516eba
1 changed files with 9 additions and 0 deletions

View File

@ -189,7 +189,12 @@ namespace
return false;
// bitcomet pad file
#if BOOST_VERSION < 103600
if (target.path.leaf().substr(0, 18) == "_____padding_file_")
#else
if (target.path.filename().substr(0, 18) == "_____padding_file_")
#endif
target.pad_file = true;
return true;
@ -422,7 +427,11 @@ namespace libtorrent
e.offset = 0;
e.size = info.dict_find_int_value("length", -1);
// bitcomet pad file
#if BOOST_VERSION < 103600
if (e.path.leaf().substr(0, 18) == "_____padding_file_")
#else
if (e.path.filename().substr(0, 18) == "_____padding_file_")
#endif
e.pad_file = true;
if (e.size < 0)
{