]> git.ipfire.org Git - thirdparty/cups-filters.git/commitdiff
filter: poppler error: make the msg be const 70/head
authorRichard Leitner <richard.leitner@skidata.com>
Tue, 13 Nov 2018 11:59:35 +0000 (12:59 +0100)
committerRichard Leitner <richard.leitner@skidata.com>
Tue, 13 Nov 2018 13:29:54 +0000 (14:29 +0100)
Poppler v0.70 introduced a const msg for its error functions in
commit 297e6944 ("Error: Make the msg be const"). Therefore adapt
this in the filters.

Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
filter/pdftoijs.cxx
filter/pdftoopvp/pdftoopvp.cxx
filter/pdftoraster.cxx

index dd6b6fa0cd3b60b22ad18ffcf73e3db298cbefa9..e69bd32699ae8bc6d5aec60c38ca236ef7bfae89 100644 (file)
@@ -72,7 +72,11 @@ namespace {
 #if POPPLER_VERSION_MAJOR > 0 || POPPLER_VERSION_MINOR >= 19
 #if POPPLER_VERSION_MAJOR > 0 || POPPLER_VERSION_MINOR >= 23
 void CDECL myErrorFun(void *data, ErrorCategory category,
+#if POPPLER_VERSION_MAJOR > 0 || POPPLER_VERSION_MINOR >= 70
+    Goffset pos, const char *msg)
+#else
     Goffset pos, char *msg)
+#endif /* MAJOR > 0 || MINOR >= 70 */
 #else
 void CDECL myErrorFun(void *data, ErrorCategory category,
     int pos, char *msg)
index bf25983bc6867f91fd50cc1b34509081c7e0955b..f0d69fae4c16bdf9b425ae7eb09128458dc41fce 100644 (file)
@@ -114,7 +114,11 @@ static int outOnePage(PDFDoc *doc, OPVPOutputDev *opvpOut, int pg)
 #if POPPLER_VERSION_MAJOR > 0 || POPPLER_VERSION_MINOR >= 19
 #if POPPLER_VERSION_MAJOR > 0 || POPPLER_VERSION_MINOR >= 23
 void CDECL myErrorFun(void *data, ErrorCategory category,
+#if POPPLER_VERSION_MAJOR > 0 || POPPLER_VERSION_MINOR >= 70
+    Goffset pos, const char *msg)
+#else
     Goffset pos, char *msg)
+#endif /* MAJOR > 0 || MINOR >= 70 */
 #else
 void CDECL myErrorFun(void *data, ErrorCategory category,
     int pos, char *msg)
index 49c266ab3b2008901af4b6a15e19b14f7f0495b9..975cefdf9168c9efc20b7dc78e94f939a930886f 100644 (file)
@@ -283,7 +283,11 @@ cmsHPROFILE sgray_profile()
 #if POPPLER_VERSION_MAJOR > 0 || POPPLER_VERSION_MINOR >= 19
 #if POPPLER_VERSION_MAJOR > 0 || POPPLER_VERSION_MINOR >= 23
 void CDECL myErrorFun(void *data, ErrorCategory category,
+#if POPPLER_VERSION_MAJOR > 0 || POPPLER_VERSION_MINOR >= 70
+    Goffset pos, const char *msg)
+#else
     Goffset pos, char *msg)
+#endif /* MAJOR > 0 || MINOR >= 70 */
 #else
 void CDECL myErrorFun(void *data, ErrorCategory category,
     int pos, char *msg)