Fix boost filesystem incompatibility problem
This commit is contained in:
parent
b6d11a3018
commit
709c1b267f
@ -44,10 +44,10 @@ static void EnvShutdown(bool fRemoveLogFiles)
|
|||||||
while (it != filesystem::directory_iterator())
|
while (it != filesystem::directory_iterator())
|
||||||
{
|
{
|
||||||
const filesystem::path& p = it->path();
|
const filesystem::path& p = it->path();
|
||||||
#if BOOST_FILESYSTEM_VERSION == 2
|
#if BOOST_FILESYSTEM_VERSION == 3
|
||||||
std::string f = p.filename();
|
|
||||||
#else
|
|
||||||
std::string f = p.filename().generic_string();
|
std::string f = p.filename().generic_string();
|
||||||
|
#else
|
||||||
|
std::string f = p.filename();
|
||||||
#endif
|
#endif
|
||||||
if (f.find("log.") == 0)
|
if (f.find("log.") == 0)
|
||||||
filesystem::remove(p);
|
filesystem::remove(p);
|
||||||
|
Loading…
Reference in New Issue
Block a user