Mercurial > hg > orthanc
diff Core/Uuid.cpp @ 110:fd7b0a3e6260
support of boost 1.42 for debian
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 04 Oct 2012 12:33:31 +0200 |
parents | 9eb40cad7935 |
children | fe180eae201d |
line wrap: on
line diff
--- a/Core/Uuid.cpp Thu Oct 04 11:50:44 2012 +0200 +++ b/Core/Uuid.cpp Thu Oct 04 12:33:31 2012 +0200 @@ -86,10 +86,17 @@ TemporaryFile::TemporaryFile() { +#if BOOST_HAS_FILESYSTEM_V3 == 1 + boost::filesystem::path tmpDir = boost::filesystem::temp_directory_path(); +#elif defined(__linux__) + boost::filesystem::path tmpDir("/tmp"); +#else +#error Support your platform here +#endif + // We use UUID to create unique path to temporary files - boost::filesystem::path tmp = boost::filesystem::temp_directory_path(); - tmp /= "Orthanc-" + Orthanc::Toolbox::GenerateUuid(); - path_ = tmp.string(); + tmpDir /= "Orthanc-" + Orthanc::Toolbox::GenerateUuid(); + path_ = tmpDir.string(); }