diff options
| author | Gavin Andresen <[email protected]> | 2011-09-06 05:25:29 -0700 |
|---|---|---|
| committer | Gavin Andresen <[email protected]> | 2011-09-06 05:25:29 -0700 |
| commit | a79401b31d883780827db512a4eda7d1ad354a95 (patch) | |
| tree | 502cc0ee416dcb0229e228a5ea43537ab84c148f /src/ui.cpp | |
| parent | README.md: word wrap text file (diff) | |
| parent | Support for boost filesystem version 3 (diff) | |
| download | discoin-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.cpp | 4 |
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 { |