diff options
author | Lee Thomason <leethomason@gmail.com> | 2022-04-03 00:20:20 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-03 00:20:20 +0300 |
commit | e45d9d16d430a3f5d3eee9fe40d5e194e1e5e63a (patch) | |
tree | b847389652ddec2f8fba34863e4d808d8541c233 | |
parent | a2d675139b7aa8ee30483d6940123aef5cd2a04e (diff) | |
parent | 7e310468f3bfd991ec027e33c2876ac014984df0 (diff) |
Fix android build
-rwxr-xr-x | tinyxml2.cpp | 11 |
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
|