diff options
| author | Gavin Andresen <[email protected]> | 2011-11-15 09:47:29 -0500 |
|---|---|---|
| committer | Gavin Andresen <[email protected]> | 2011-11-15 09:47:29 -0500 |
| commit | 709c1b267fcf4992ede95e7aff3ed333c068dfa5 (patch) | |
| tree | e068e07c98ee38c58da9e9cf89bdf8bf482e52f7 /src/db.cpp | |
| parent | Merge pull request #635 from gavinandresen/encryptionbug (diff) | |
| download | discoin-709c1b267fcf4992ede95e7aff3ed333c068dfa5.tar.xz discoin-709c1b267fcf4992ede95e7aff3ed333c068dfa5.zip | |
Fix boost filesystem incompatibility problemv0.5.0rc4
Diffstat (limited to 'src/db.cpp')
| -rw-r--r-- | src/db.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/db.cpp b/src/db.cpp index f163ac949..d769cae71 100644 --- a/src/db.cpp +++ b/src/db.cpp @@ -44,10 +44,10 @@ static void EnvShutdown(bool fRemoveLogFiles) while (it != filesystem::directory_iterator()) { const filesystem::path& p = it->path(); -#if BOOST_FILESYSTEM_VERSION == 2 - std::string f = p.filename(); -#else +#if BOOST_FILESYSTEM_VERSION == 3 std::string f = p.filename().generic_string(); +#else + std::string f = p.filename(); #endif if (f.find("log.") == 0) filesystem::remove(p); |