git://git.novaco.in
/
novacoin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
b6d11a3
)
Fix boost filesystem incompatibility problem
author
Gavin Andresen
<gavinandresen@gmail.com>
Tue, 15 Nov 2011 14:47:29 +0000 (09:47 -0500)
committer
Gavin Andresen
<gavinandresen@gmail.com>
Tue, 15 Nov 2011 14:47:29 +0000 (09:47 -0500)
src/db.cpp
patch
|
blob
|
history
diff --git
a/src/db.cpp
b/src/db.cpp
index
f163ac9
..
d769cae
100644
(file)
--- 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);