From a687d4f574cb22ec969354dce3237558982e29d3 Mon Sep 17 00:00:00 2001 From: Luke Dashjr Date: Fri, 19 Aug 2011 12:45:27 -0400 Subject: [PATCH] Support for boost filesystem version 3 --- src/ui.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ui.cpp b/src/ui.cpp index 198a2720..6b7ecdbc 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 {