external/pdfium/Library_pdfium.mk         |    6 ++++++
 external/pdfium/UnpackedTarball_pdfium.mk |    2 ++
 external/pdfium/system-fast_float.diff    |   30 ++++++++++++++++++++++++++++++
 3 files changed, 38 insertions(+)

New commits:
commit 575df49aacd88385074970bcdba455f5a596f704
Author:     Rene Engelhard <r...@rene-engelhard.de>
AuthorDate: Sun Sep 21 12:55:47 2025 +0200
Commit:     Miklos Vajna <vmik...@collabora.com>
CommitDate: Mon Sep 22 08:41:46 2025 +0200

    honour --with-system-fast-float in pdfium
    
    Change-Id: I04492b4e2c921983f9f7b42a2528b1cf2ae0da5b
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191287
    Reviewed-by: Miklos Vajna <vmik...@collabora.com>
    Tested-by: Jenkins

diff --git a/external/pdfium/Library_pdfium.mk 
b/external/pdfium/Library_pdfium.mk
index a5f6b908c176..62f83e022f6d 100644
--- a/external/pdfium/Library_pdfium.mk
+++ b/external/pdfium/Library_pdfium.mk
@@ -30,6 +30,7 @@ $(eval $(call gb_Library_set_include,pdfium,\
     -I$(gb_UnpackedTarball_workdir)/pdfium/third_party \
     -I$(gb_UnpackedTarball_workdir)/pdfium/third_party/agg23 \
     $(if $(filter 
TRUE,$(SYSTEM_ABSEIL)),$(ABSEIL_CFLAGS),-I$(gb_UnpackedTarball_workdir)/pdfium/third_party/abseil-cpp)
 \
+    $(if $(filter 
TRUE,$(SYSTEM_FAST_FLOAT)),$(FAST_FLOAT_CFLAGS),-I$(gb_UnpackedTarball_workdir)/pdfium/third_party/fast_float)
 \
     $(if $(filter TRUE,$(SYSTEM_OPENJPEG2)),$(OPENJPEG2_CFLAGS)) \
     $$(INCLUDE) \
 ))
@@ -55,6 +56,11 @@ $(eval $(call gb_Library_add_defs,pdfium,\
     -DUSE_SYSTEM_ABSEIL \
 ))
 endif
+ifeq ($(SYSTEM_FAST_FLOAT),TRUE)
+$(eval $(call gb_Library_add_defs,pdfium,\
+    -DUSE_SYSTEM_FAST_FLOAT \
+))
+endif
 
 
 $(eval $(call gb_Library_set_generated_cxx_suffix,pdfium,cpp))
diff --git a/external/pdfium/UnpackedTarball_pdfium.mk 
b/external/pdfium/UnpackedTarball_pdfium.mk
index b07ab25633a1..c8266d2ccc8b 100644
--- a/external/pdfium/UnpackedTarball_pdfium.mk
+++ b/external/pdfium/UnpackedTarball_pdfium.mk
@@ -18,6 +18,8 @@ pdfium_patches += freebsd.patch
 
 pdfium_patches += system-abseil.diff
 
+pdfium_patches += system-fast_float.diff
+
 # https://pdfium-review.googlesource.com/c/pdfium/+/130970
 pdfium_patches += retrieve-MIME-type-from-PDF-attachments.patch.1
 
diff --git a/external/pdfium/system-fast_float.diff 
b/external/pdfium/system-fast_float.diff
new file mode 100644
index 000000000000..4d0178dc116a
--- /dev/null
+++ b/external/pdfium/system-fast_float.diff
@@ -0,0 +1,30 @@
+diff -urN pdfium/core/fxcrt/fx_extension.cpp 
pdfium.new/core/fxcrt/fx_extension.cpp
+--- core/fxcrt/fx_extension.cpp        2025-02-10 19:49:22.000000000 +0100
++++ core/fxcrt/fx_extension.cpp        2025-09-21 11:53:43.310869830 +0200
+@@ -16,7 +16,11 @@
+ #include "core/fxcrt/fx_system.h"
+ #include "core/fxcrt/utf16.h"
+ #include "core/fxcrt/widestring.h"
++#ifdef USE_SYSTEM_FAST_FLOAT
++#include <fast_float/fast_float.h>
++#else
+ #include "third_party/fast_float/src/include/fast_float/fast_float.h"
++#endif
+ 
+ namespace {
+ 
+diff -urN pdfium/core/fxcrt/fx_string.cpp pdfium.new/core/fxcrt/fx_string.cpp
+--- core/fxcrt/fx_string.cpp   2025-02-10 19:49:22.000000000 +0100
++++ core/fxcrt/fx_string.cpp   2025-09-21 11:53:03.382500482 +0200
+@@ -20,7 +20,11 @@
+ #include "core/fxcrt/span.h"
+ #include "core/fxcrt/utf16.h"
+ #include "core/fxcrt/widestring.h"
++#ifdef USE_SYSTEM_FAST_FLOAT
++#include <fast_float/fast_float.h>
++#else
+ #include "third_party/fast_float/src/include/fast_float/fast_float.h"
++#endif
+ 
+ #if !defined(WCHAR_T_IS_16_BIT) && !defined(WCHAR_T_IS_32_BIT)
+ #error "Unknown wchar_t size"

Reply via email to