external/poppler: missing includes (for INT_MAX etc.)

Change-Id: I7189b126b335a70e045adb46676c3271f6a113cf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/197236
Reviewed-by: Stephan Bergmann <stephan.bergmann@collabora.com>
Tested-by: Jenkins
This commit is contained in:
Stephan Bergmann
2026-01-14 09:20:28 +01:00
parent e1e035e0e5
commit 47a8c139a4
2 changed files with 41 additions and 0 deletions
+1
View File
@@ -16,6 +16,7 @@ $(eval $(call gb_UnpackedTarball_set_patchlevel,poppler,0))
$(eval $(call gb_UnpackedTarball_add_patches,poppler,\
external/poppler/disable-freetype.patch.1 \
external/poppler/poppler-config.patch.1 \
external/poppler/missinginclude.patch \
))
ifneq ($(filter -fsanitize=%,$(CC)),)
+40
View File
@@ -0,0 +1,40 @@
--- poppler/Function.cc
+++ poppler/Function.cc
@@ -33,6 +33,7 @@
#include <cstdlib>
#include <cstring>
#include <cctype>
+#include <climits>
#include <cmath>
#include "goo/gmem.h"
#include "goo/gstrtod.h"
--- poppler/Gfx.cc
+++ poppler/Gfx.cc
@@ -63,6 +63,7 @@
#include <cstdlib>
#include <cstdio>
#include <cstring>
+#include <climits>
#include <cmath>
#include <memory>
#include "goo/GooTimer.h"
--- poppler/Parser.cc
+++ poppler/Parser.cc
@@ -33,6 +33,7 @@
#include <config.h>
+#include <climits>
#include "Object.h"
#include "Array.h"
#include "Dict.h"
--- poppler/SplashOutputDev.cc
+++ poppler/SplashOutputDev.cc
@@ -54,6 +54,7 @@
#include <config.h>
#include <cstring>
+#include <climits>
#include <cmath>
#include <vector>
#include "Stream.h"