Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/leethomason/tinyxml2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLee Thomason <leethomason@gmail.com>2022-04-03 00:20:20 +0300
committerGitHub <noreply@github.com>2022-04-03 00:20:20 +0300
commite45d9d16d430a3f5d3eee9fe40d5e194e1e5e63a (patch)
treeb847389652ddec2f8fba34863e4d808d8541c233
parenta2d675139b7aa8ee30483d6940123aef5cd2a04e (diff)
parent7e310468f3bfd991ec027e33c2876ac014984df0 (diff)
Merge pull request #907 from leethomason/leethomason/fix-androidHEADmaster
Fix android build
-rwxr-xr-xtinyxml2.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/tinyxml2.cpp b/tinyxml2.cpp
index bb51e08..a747605 100755
--- a/tinyxml2.cpp
+++ b/tinyxml2.cpp
@@ -103,10 +103,17 @@ distribution.
#if defined(_WIN64)
#define TIXML_FSEEK _fseeki64
#define TIXML_FTELL _ftelli64
-#elif defined(__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__) \
- || defined(__NetBSD__) || defined(__DragonFly__) || defined(__ANDROID__) || (__CYGWIN__)
+#elif defined(__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__DragonFly__) || (__CYGWIN__)
#define TIXML_FSEEK fseeko
#define TIXML_FTELL ftello
+#elif defined(__ANDROID__)
+ #if __ANDROID_API__ > 24
+ #define TIXML_FSEEK fseeko64
+ #define TIXML_FTELL ftello64
+ #else
+ #define TIXML_FSEEK fseeko
+ #define TIXML_FTELL ftello
+ #endif
#elif defined(__unix__) && defined(__x86_64__)
#define TIXML_FSEEK fseeko64
#define TIXML_FTELL ftello64