diff --git a/tinyxml2.cpp b/tinyxml2.cpp index 083f54b..e7319db 100644 --- a/tinyxml2.cpp +++ b/tinyxml2.cpp @@ -106,14 +106,9 @@ distribution. #elif defined(__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__DragonFly__) || defined(__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(__ANDROID__) && __ANDROID_API__ >= 24 + #define TIXML_FSEEK fseeko64 + #define TIXML_FTELL ftello64 #else #define TIXML_FSEEK fseek #define TIXML_FTELL ftell