[gnome-commander] Add patch to compile with poppler 0.24, fixes bgo#705724



commit 99a9dc60bc9933603d99cfd034d27e58aaea7edf
Author: Pino Toscano <pino debian org>
Date:   Sat Dec 21 23:40:10 2013 +0100

    Add patch to compile with poppler 0.24, fixes bgo#705724
    
    Signed-off-by: Uwe Scholz <uwescholz src gnome org>

 configure.in                       |    3 +++
 src/tags/gnome-cmd-tags-poppler.cc |    7 ++++++-
 2 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/configure.in b/configure.in
index 35a3360..a65317e 100644
--- a/configure.in
+++ b/configure.in
@@ -262,6 +262,9 @@ if test x$with_poppler != xno; then
     if pkg-config --atleast-version=0.19.0 poppler; then
         AC_DEFINE(POPPLER_HAS_SET_ERROR_CALLBACK, 1, [Define to 1 if poppler has support for 
setErrorCallback()])
     fi
+    if pkg-config --atleast-version=0.23.0 poppler; then
+        AC_DEFINE(POPPLER_HAS_GOFFSET, 1, [Define to 1 if poppler has Goffset])
+    fi
 fi
 if test "x$have_pdf" = "xyes"; then
    AC_DEFINE(HAVE_PDF, 1, [Define to 1 if you have PDF support])
diff --git a/src/tags/gnome-cmd-tags-poppler.cc b/src/tags/gnome-cmd-tags-poppler.cc
index 589ec16..acc750f 100644
--- a/src/tags/gnome-cmd-tags-poppler.cc
+++ b/src/tags/gnome-cmd-tags-poppler.cc
@@ -41,7 +41,12 @@ using namespace std;
 static regex_t rxDate;
 static gboolean rxDate_OK;
 #ifdef POPPLER_HAS_SET_ERROR_CALLBACK
-static void noErrorReporting(void *, ErrorCategory, int pos, char *msg)
+#ifdef POPPLER_HAS_GOFFSET
+typedef Goffset gcmd_poppler_offset_t;
+#else
+typedef int gcmd_poppler_offset_t;
+#endif
+static void noErrorReporting(void *, ErrorCategory, gcmd_poppler_offset_t pos, char *msg)
 #else
 static void noErrorReporting(int pos, char *msg, va_list args)
 #endif


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