From 6eade3eaa61ba7e201a591f69c514f1b400e1b8e Mon Sep 17 00:00:00 2001 From: LilyWangLL <494550702@qq.com> Date: Mon, 25 Sep 2023 01:45:16 -0700 Subject: [PATCH] Fix 32-bit ABI bugs of android --- include/toml++/impl/parser.inl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/toml++/impl/parser.inl b/include/toml++/impl/parser.inl index 6f0136f2..be37f0de 100644 --- a/include/toml++/impl/parser.inl +++ b/include/toml++/impl/parser.inl @@ -23,6 +23,12 @@ #include "unicode.hpp" TOML_DISABLE_WARNINGS; #include + +#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 #if TOML_INT_CHARCONV || TOML_FLOAT_CHARCONV #include