aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/tomlplusplus/fix-android-fileapi.patch
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/tomlplusplus/fix-android-fileapi.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/tomlplusplus/fix-android-fileapi.patch')
-rw-r--r--vcpkg/ports/tomlplusplus/fix-android-fileapi.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/vcpkg/ports/tomlplusplus/fix-android-fileapi.patch b/vcpkg/ports/tomlplusplus/fix-android-fileapi.patch
new file mode 100644
index 0000000..7d78bf7
--- /dev/null
+++ b/vcpkg/ports/tomlplusplus/fix-android-fileapi.patch
@@ -0,0 +1,17 @@
+diff --git a/include/toml++/impl/parser.inl b/include/toml++/impl/parser.inl
+index 6f0136f..be37f0d 100644
+--- a/include/toml++/impl/parser.inl
++++ b/include/toml++/impl/parser.inl
+@@ -23,6 +23,12 @@
+ #include "unicode.hpp"
+ TOML_DISABLE_WARNINGS;
+ #include <istream>
++
++#if defined(__ANDROID_API__) && __ANDROID_API__ < 24
++ // Cf. https://android.googlesource.com/platform/bionic/+/master/docs/32-bit-abi.md#32_bit-and
++ #define ftello ftell
++ #define fseeko fseek
++#endif
+ #include <fstream>
+ #if TOML_INT_CHARCONV || TOML_FLOAT_CHARCONV
+ #include <charconv>