summaryrefslogtreecommitdiffstats
path: root/tdefile-plugins/dependencies/poppler-tqt/poppler-private.h
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2024-02-21 10:35:52 +0100
committerSlávek Banko <[email protected]>2024-02-21 13:15:46 +0100
commit459c09ca534951e160dddafa22ef9dde1574baac (patch)
treea4323fb61cce205dede13cc96c36c8b4ee0027f0 /tdefile-plugins/dependencies/poppler-tqt/poppler-private.h
parentdf6124db4d9366cc339baa8ab36417b7da549e27 (diff)
downloadtdegraphics-459c09ca534951e160dddafa22ef9dde1574baac.tar.gz
tdegraphics-459c09ca534951e160dddafa22ef9dde1574baac.zip
Simplify poppler version definitions.
Signed-off-by: Slávek Banko <[email protected]> (cherry picked from commit 108c4a3a4ae4cdda98e46741c83666b3a7e13d03)
Diffstat (limited to 'tdefile-plugins/dependencies/poppler-tqt/poppler-private.h')
-rw-r--r--tdefile-plugins/dependencies/poppler-tqt/poppler-private.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/tdefile-plugins/dependencies/poppler-tqt/poppler-private.h b/tdefile-plugins/dependencies/poppler-tqt/poppler-private.h
index f1096ceb..d3487ef1 100644
--- a/tdefile-plugins/dependencies/poppler-tqt/poppler-private.h
+++ b/tdefile-plugins/dependencies/poppler-tqt/poppler-private.h
@@ -39,27 +39,27 @@
#else
class SplashOutputDev;
#endif
-#if defined(HAVE_POPPLER_064)
+#if (POPPLER_VERSION_C >= 64000)
#define CONST_064 const
#else
#define CONST_064
#endif
-#if defined(HAVE_POPPLER_071)
+#if (POPPLER_VERSION_C >= 71000)
#define GBool bool
#define gTrue true
#define gFalse false
#endif
-#if defined(HAVE_POPPLER_072)
+#if (POPPLER_VERSION_C >= 72000)
#define GOO_GET_CSTR c_str
#else
#define GOO_GET_CSTR getCString
#endif
-#if defined(HAVE_POPPLER_076)
+#if (POPPLER_VERSION_C >= 76000)
#include <vector>
class OutlineItem;
#define OUTLINE_ITEMS_TYPE const std::vector<OutlineItem*>
#define OUTLINE_ITEMS_LENGTH(goo) goo->size()
-# if defined(HAVE_POPPLER_082)
+# if (POPPLER_VERSION_C >= 82000)
#define FONTS_LIST_TYPE std::vector<::FontInfo*>
#define FONTS_LIST_LENGTH(goo) goo.size()
#define FONTS_LIST_IS_EMPTY(goo) goo.empty()
@@ -104,7 +104,7 @@ class LinkDestinationData {
class DocumentData {
public:
-# if defined(HAVE_POPPLER_2203)
+# if (POPPLER_VERSION_C >= 22003000)
DocumentData(std::unique_ptr<GooString> &&filePath, const std::optional<GooString> &password) : doc(std::move(filePath), password), m_fontInfoScanner(0), m_outputDev(0) {}
# else
DocumentData(GooString *filePath, GooString *password) : doc(filePath,password), m_fontInfoScanner(0), m_outputDev(0) {}