From: Paul Zander Date: Mon, 12 Jan 2026 21:14:33 +0000 (+0100) Subject: Include for GCC 16 X-Git-Tag: archive/raspbian/26.01.0-5+rpi1^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=8de12117f67e72093b56367aa47fbd600abed654;p=poppler.git Include for GCC 16 Origin: https://gitlab.freedesktop.org/poppler/poppler/-/commit/4a2294f59ebbbe690d09aa6f7e021e29cbb85782 ``` poppler-26.01.0/poppler/SplashOutputDev.cc: In constructor ‘T3FontCache::T3FontCache(const Ref*, double, double, double, double, int, int, int, int, bool, bool)’: poppler-26.01.0/poppler/SplashOutputDev.cc:1129:18: error: ‘INT_MAX’ was not declared in this scope 1129 | if (glyphW > INT_MAX / glyphH || glyphW <= 0 || glyphH <= 0 || glyphW * glyphH > 100000) { | ^~~~~~~ poppler-26.01.0/poppler/SplashOutputDev.cc:84:1: note: ‘INT_MAX’ is defined in header ‘’; this is probably fixable by adding ‘#include ’ 83 | #include "SplashOutputDev.h" +++ |+#include 84 | #include ``` Signed-off-by: Paul Zander Signed-off-by: Sam James Gbp-Pq: Name Include-climits-for-GCC-16.patch --- diff --git a/poppler/Function.cc b/poppler/Function.cc index 313b58d..60d535e 100644 --- a/poppler/Function.cc +++ b/poppler/Function.cc @@ -30,6 +30,7 @@ #include +#include #include #include #include diff --git a/poppler/Gfx.cc b/poppler/Gfx.cc index 2436159..e24f414 100644 --- a/poppler/Gfx.cc +++ b/poppler/Gfx.cc @@ -60,6 +60,7 @@ #include +#include #include #include #include diff --git a/poppler/Parser.cc b/poppler/Parser.cc index 415fa5e..cf23d77 100644 --- a/poppler/Parser.cc +++ b/poppler/Parser.cc @@ -33,6 +33,7 @@ #include +#include #include "Object.h" #include "Array.h" #include "Dict.h" diff --git a/poppler/SplashOutputDev.cc b/poppler/SplashOutputDev.cc index 184d37e..3b30669 100644 --- a/poppler/SplashOutputDev.cc +++ b/poppler/SplashOutputDev.cc @@ -53,6 +53,7 @@ #include +#include #include #include #include