summaryrefslogtreecommitdiff
path: root/source/l/poppler/d7aa275b0bca86ae174e7e504dd269df2a0234cf.patch
blob: 31cba1c014b2a572c511be0126098e73161131d3 (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
From d7aa275b0bca86ae174e7e504dd269df2a0234cf Mon Sep 17 00:00:00 2001
From: Evangelos Foutras <evangelos@foutrelis.com>
Date: Tue, 6 Apr 2021 09:56:55 +0300
Subject: [PATCH] Export SplashFont* symbols used by Scribus

Scribus 1.5.6.1 compiled against poppler 21.04.0 was unable to load its
PDF importer plugin without these classes being exported by libpoppler:

- SplashFontFileID
- SplashFontEngine
- SplashFontSrc
---
 splash/SplashFontEngine.h | 3 ++-
 splash/SplashFontFile.h   | 3 ++-
 splash/SplashFontFileID.h | 4 +++-
 3 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/splash/SplashFontEngine.h b/splash/SplashFontEngine.h
index becc0d9ce..3e5458c09 100644
--- a/splash/SplashFontEngine.h
+++ b/splash/SplashFontEngine.h
@@ -30,6 +30,7 @@
 #include <array>
 
 #include "SplashTypes.h"
+#include "poppler_private_export.h"
 
 class SplashT1FontEngine;
 class SplashFTFontEngine;
@@ -44,7 +45,7 @@ class SplashFontSrc;
 // SplashFontEngine
 //------------------------------------------------------------------------
 
-class SplashFontEngine
+class POPPLER_PRIVATE_EXPORT SplashFontEngine
 {
 public:
     // Create a font engine.
diff --git a/splash/SplashFontFile.h b/splash/SplashFontFile.h
index 598fd8325..539bd3075 100644
--- a/splash/SplashFontFile.h
+++ b/splash/SplashFontFile.h
@@ -23,6 +23,7 @@
 #define SPLASHFONTFILE_H
 
 #include "SplashTypes.h"
+#include "poppler_private_export.h"
 
 class GooString;
 class SplashFontEngine;
@@ -33,7 +34,7 @@ class SplashFontFileID;
 // SplashFontFile
 //------------------------------------------------------------------------
 
-class SplashFontSrc
+class POPPLER_PRIVATE_EXPORT SplashFontSrc
 {
 public:
     SplashFontSrc();
diff --git a/splash/SplashFontFileID.h b/splash/SplashFontFileID.h
index 02b528aab..c127dd87f 100644
--- a/splash/SplashFontFileID.h
+++ b/splash/SplashFontFileID.h
@@ -21,11 +21,13 @@
 #ifndef SPLASHFONTFILEID_H
 #define SPLASHFONTFILEID_H
 
+#include "poppler_private_export.h"
+
 //------------------------------------------------------------------------
 // SplashFontFileID
 //------------------------------------------------------------------------
 
-class SplashFontFileID
+class POPPLER_PRIVATE_EXPORT SplashFontFileID
 {
 public:
     SplashFontFileID();
-- 
GitLab