[niepce] * src/fwk/toolkit/mimetype.cpp: Check boost version
- From: Hubert Figuiere <hub src gnome org>
- To: svn-commits-list gnome org
- Subject: [niepce] * src/fwk/toolkit/mimetype.cpp: Check boost version
- Date: Fri, 10 Apr 2009 14:57:31 -0400 (EDT)
commit 2e2b1e98f07ae2f2d67613d21bb8fa7f820b0c87
Author: Hubert Figuiere <hub figuiere net>
Date: Thu Apr 9 20:07:35 2009 -0400
* src/fwk/toolkit/mimetype.cpp: Check boost version
for deprecated functions.
---
ChangeLog | 5 +++++
src/fwk/toolkit/mimetype.cpp | 6 ++++++
2 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 80c757b..f9459d2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-04-09 Hubert Figuiere <hub figuiere net>
+
+ * src/fwk/toolkit/mimetype.cpp: Check boost version
+ for deprecated functions.
+
2009-03-08 Hubert Figuiere <hub figuiere net>
* src/engine/db/library.cpp (Library::addFile):
diff --git a/src/fwk/toolkit/mimetype.cpp b/src/fwk/toolkit/mimetype.cpp
index 5742de0..e8d6a44 100644
--- a/src/fwk/toolkit/mimetype.cpp
+++ b/src/fwk/toolkit/mimetype.cpp
@@ -19,6 +19,8 @@
#include <string>
+#include <boost/version.hpp>
+
#include <libgnomevfs/gnome-vfs-mime-utils.h>
#include "config.h"
@@ -76,7 +78,11 @@ bool MimeType::isUnknown() const
bool MimeType::isXmp() const
{
+#if BOOST_VERSION >= 103600
return m_path.extension() == ".xmp";
+#else
+ return extension(m_path) == ".xmp";
+#endif
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]