Tweak handling of boost filesystem versions

(partial cherry pick)
This commit is contained in:
Gavin Andresen
2011-11-15 14:28:51 -05:00
committed by Luke Dashjr
parent 1aafd7464f
commit 831d24a19d

View File

@@ -51,7 +51,7 @@ static void EnvShutdown(bool fRemoveLogFiles)
while (it != filesystem::directory_iterator())
{
const filesystem::path& p = it->path();
#if BOOST_FILESYSTEM_VERSION == 3
#if BOOST_FILESYSTEM_VERSION >= 3
std::string f = p.filename().generic_string();
#else
std::string f = p.filename();