[gnote] * Fix build on boost 1.34 (again) (Closes #580485)



commit 34772930c636e593fbe99c8a3f216fc7e4bf55f9
Author: Hubert Figuiere <hub figuiere net>
Date:   Tue Apr 28 01:23:36 2009 -0400

      * Fix build on boost 1.34 (again) (Closes #580485)
---
 NEWS                   |    1 +
 src/sharp/fileinfo.cpp |    4 ++++
 2 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/NEWS b/NEWS
index a4215a3..b0c8bf2 100644
--- a/NEWS
+++ b/NEWS
@@ -17,6 +17,7 @@ Translations:
 
   * Short descriptions in shema must not end with a '.' (Closes #579337)
   * Added translations:
+    - Czech (cs)
     - Portugese (pt)
     - Spanish (es)
     - Thai (th)
diff --git a/src/sharp/fileinfo.cpp b/src/sharp/fileinfo.cpp
index d8f5c24..fa6a1f8 100644
--- a/src/sharp/fileinfo.cpp
+++ b/src/sharp/fileinfo.cpp
@@ -38,7 +38,11 @@ namespace sharp {
 
   std::string FileInfo::get_name() const
   {
+#if BOOST_VERSION >= 103600
     return boost::filesystem::path(m_path).filename();
+#else
+    return boost::filesystem::path(m_path).leaf();
+#endif
   }
 
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]