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:
Diffstat (limited to 'tinyxml2.cpp')
-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