File 0006-fix-poppler-0.72.0-build.patch of Package inkscape
From b3d59cc8106da3bf6020a6c47eeb3b8a7bbae1a9 Mon Sep 17 00:00:00 2001
From: Thomas Holder <thomas@thomas-holder.de>
Date: Sun, 9 Dec 2018 10:21:34 +0100
Subject: [PATCH] fix poppler 0.72.0 build
---
src/extension/internal/pdfinput/pdf-parser.h | 1 -
src/extension/internal/pdfinput/poppler-transition-api.h | 4 ++++
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/extension/internal/pdfinput/pdf-parser.h b/src/extension/internal/pdfinput/pdf-parser.h
index 2d4441a22c..31c84d51bb 100644
--- a/src/extension/internal/pdfinput/pdf-parser.h
+++ b/src/extension/internal/pdfinput/pdf-parser.h
@@ -37,7 +37,6 @@ namespace Inkscape {
using Inkscape::Extension::Internal::SvgBuilder;
#include "glib/poppler-features.h"
-#include "goo/gtypes.h"
#include "Object.h"
class GooString;
#diff --git a/src/extension/internal/pdfinput/poppler-transition-api.h b/src/extension/internal/pdfinput/poppler-transition-api.h
#index 5141bf8a73..61a15083a0 100644
#--- a/src/extension/internal/pdfinput/poppler-transition-api.h
#+++ b/src/extension/internal/pdfinput/poppler-transition-api.h
#@@ -14,6 +14,10 @@
#
# #include <glib/poppler-features.h>
#
#+#if POPPLER_CHECK_VERSION(0, 72, 0)
#+#define getCString c_str
#+#endif
#+
# #if POPPLER_CHECK_VERSION(0,71,0)
# typedef bool GBool;
# #define gTrue true
--
2.22.0