vcpkg/ports/tomlplusplus/fix-android-fileapi.patch
Lily Wang 4a311457c3
[tomlplusplus] Update to 3.3.0 (#33835)
* [tomlplusplus] update to 3.3.0

* update version

* fix android error

* update version

* update patch

* update version
2023-09-26 00:31:49 -07:00

18 lines
569 B
Diff

diff --git a/include/toml++/impl/parser.inl b/include/toml++/impl/parser.inl
index 27de2b0..bb2fb46 100644
--- a/include/toml++/impl/parser.inl
+++ b/include/toml++/impl/parser.inl
@@ -23,6 +23,12 @@
#include "unicode.h"
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>