summaryrefslogtreecommitdiff
blob: 8529d99e7351a7b1b1b814d2b849b6cd33d68036 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
From 77ea05388924fcf2a8c9fd4a777c97e4d69f5e17 Mon Sep 17 00:00:00 2001
From: Andreas Sturmlechner <asturm@gentoo.org>
Date: Wed, 16 Jan 2019 20:52:59 +0100
Subject: [PATCH] Fix build with poppler-0.73

---
 gdal/frmts/pdf/pdfsdk_headers.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/frmts/pdf/pdfsdk_headers.h b/frmts/pdf/pdfsdk_headers.h
index 9150b0f410..574943b41f 100644
--- a/frmts/pdf/pdfsdk_headers.h
+++ b/frmts/pdf/pdfsdk_headers.h
@@ -50,7 +50,6 @@
 #pragma warning( disable : 4244 ) /* conversion from 'const int' to 'Guchar', possible loss of data */
 #endif
 
-#include <goo/gtypes.h>
 #include <goo/GooList.h>
 
 /* begin of poppler xpdf includes */
@@ -79,6 +78,10 @@
 
 /* end of poppler xpdf includes */
 
+/* poppler-0.73 compatibility */
+#define Guchar unsigned char
+#define Guint unsigned int
+
 #ifdef _MSC_VER
 #pragma warning( pop )
 #endif
-- 
2.20.1