Make 'gb.pdf' compile with poppler 25.12.0.
authorBenoît Minisini <benoit.minisini@gambas-basic.org>
Sat, 13 Dec 2025 21:03:16 +0000 (22:03 +0100)
committerBastian Germann <bage@debian.org>
Sat, 16 May 2026 09:28:07 +0000 (11:28 +0200)
[GB.PDF]
* BUG: Make 'gb.pdf' compile with poppler 25.12.0.

Origin: https://gitlab.com/gambas/gambas/-/commit/976e7a42f651ebcccc5e6835329889df60a03ed1

Gbp-Pq: Name Make-gb.pdf-compile-with-poppler-25.12.0.patch

gb.pdf/configure.ac
gb.pdf/src/CPdfDocument.cpp

index aabf3f2eedeb27857d8a477244ccae50e09e142c..0ed70ba911e44a7c315299234a60ba2a18aab0be 100644 (file)
@@ -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([\
index 176284f1a898e61f3c80001ad6ede34465019a9c..b08e55282a61665a0f6591de447f3e7cbf758459 100644 (file)
 #include "UTF.h"
 #endif
 
+#if POPPLER_VERSION_25_12_0
+#define getLength size
+#endif
+
 /***************************************************************************/
 
 static CPDFRECT *create_rect(void)