aboutsummaryrefslogtreecommitdiff
path: root/src/ui.cpp
diff options
context:
space:
mode:
authorGavin Andresen <[email protected]>2011-09-06 05:25:29 -0700
committerGavin Andresen <[email protected]>2011-09-06 05:25:29 -0700
commita79401b31d883780827db512a4eda7d1ad354a95 (patch)
tree502cc0ee416dcb0229e228a5ea43537ab84c148f /src/ui.cpp
parentREADME.md: word wrap text file (diff)
parentSupport for boost filesystem version 3 (diff)
downloaddiscoin-a79401b31d883780827db512a4eda7d1ad354a95.tar.xz
discoin-a79401b31d883780827db512a4eda7d1ad354a95.zip
Merge pull request #496 from alexwaters/boost_fs3
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
{