aboutsummaryrefslogtreecommitdiff
path: root/src/ui.cpp
diff options
context:
space:
mode:
authorLuke Dashjr <[email protected]>2011-08-19 12:45:27 -0400
committerLuke Dashjr <[email protected]>2011-09-03 11:24:45 -0400
commita687d4f574cb22ec969354dce3237558982e29d3 (patch)
tree8c50e206d35a5e51bb5347985fea3db3cc4461ec /src/ui.cpp
parentBumped version numbers to 0.4.0rc1 (diff)
downloaddiscoin-a687d4f574cb22ec969354dce3237558982e29d3.tar.xz
discoin-a687d4f574cb22ec969354dce3237558982e29d3.zip
Support for boost filesystem version 3
Diffstat (limited to 'src/ui.cpp')
-rw-r--r--src/ui.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ui.cpp b/src/ui.cpp
index 198a27209..6b7ecdbc8 100644
--- a/src/ui.cpp
+++ b/src/ui.cpp
@@ -1805,7 +1805,11 @@ void SetStartOnSystemStartup(bool fAutoStart)
{
if (!fAutoStart)
{
+#if defined(BOOST_FILESYSTEM_VERSION) && BOOST_FILESYSTEM_VERSION >= 3
+ unlink(GetAutostartFilePath().string().c_str());
+#else
unlink(GetAutostartFilePath().native_file_string().c_str());
+#endif
}
else
{