summaryrefslogtreecommitdiff
path: root/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2011-09-21 17:13:25 +0200
committerLuboš Luňák <l.lunak@suse.cz>2011-09-21 17:15:11 +0200
commit8861df394604fa6dd8c72181a023557d037f7235 (patch)
tree1093621b6ba8f396f3e799b932f0d5ef7a9e7163 /sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx
parent5ab3360cf7e22ba7188ce6bfed5f2213a18a6f49 (diff)
build without glib poppler bindings
- there's not configure check for it, only for poppler itself - and it's not actually used anyway
Diffstat (limited to 'sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx')
-rw-r--r--sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx
index 2a35fb7faaae..f24dd9f5380d 100644
--- a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx
+++ b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx
@@ -68,7 +68,11 @@ class PDFDoc;
#define POPPLER_CHECK_VERSION(major,minor,micro) (0)
typedef GString GooString;
#else
-#include <glib/poppler-features.h>
+#include <cpp/poppler-version.h>
+#define POPPLER_CHECK_VERSION(major,minor,micro) \
+ (POPPLER_VERSION_MAJOR > (major) || \
+ (POPPLER_VERSION_MAJOR == (major) && POPPLER_VERSION_MINOR > (minor)) || \
+ (POPPLER_VERSION_MAJOR == (major) && POPPLER_VERSION_MINOR == (minor) && POPPLER_VERSION_MICRO >= (micro)))
#endif
namespace pdfi