File us-976e7a42f651ebcccc5e6835329889df60a03ed1.patch of Package gambas3
From 976e7a42f651ebcccc5e6835329889df60a03ed1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Minisini?= <benoit.minisini@gambas-basic.org> Date: Sat, 13 Dec 2025 22:03:16 +0100 Subject: [PATCH] Make 'gb.pdf' compile with poppler 25.12.0. [GB.PDF] * BUG: Make 'gb.pdf' compile with poppler 25.12.0. --- gb.pdf/configure.ac | 2 ++ gb.pdf/src/CPdfDocument.cpp | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/gb.pdf/configure.ac b/gb.pdf/configure.ac index aabf3f2ee..0ed70ba91 100644 --- a/gb.pdf/configure.ac +++ b/gb.pdf/configure.ac @@ -44,6 +44,8 @@ if test "$have_poppler" = "yes"; then AC_DEFINE_UNQUOTED(POPPLER_VERSION_24_12_0, $((1-$?)), Poppler version >= 24.12.0) $PKG_CONFIG --atleast-version=25.01.0 poppler AC_DEFINE_UNQUOTED(POPPLER_VERSION_25_01_0, $((1-$?)), Poppler version >= 25.01.0) + $PKG_CONFIG --atleast-version=25.12.0 poppler + AC_DEFINE_UNQUOTED(POPPLER_VERSION_25_12_0, $((1-$?)), Poppler version >= 25.12.0) fi AC_CONFIG_FILES([\ diff --git a/gb.pdf/src/CPdfDocument.cpp b/gb.pdf/src/CPdfDocument.cpp index 313b53527..dd1a95b6e 100644 --- a/gb.pdf/src/CPdfDocument.cpp +++ b/gb.pdf/src/CPdfDocument.cpp @@ -56,6 +56,10 @@ #include "UTF.h" #endif +#if POPPLER_VERSION_25_12_0 +#define getLength size +#endif + /***************************************************************************/ static CPDFRECT *create_rect(void) -- GitLab