Skip to content

Commit

Permalink
Merge pull request #973 from davidoakley/fix-android-before-api24
Browse files Browse the repository at this point in the history
Use fseek/ftell on Android when api level < 24
  • Loading branch information
leethomason authored Apr 21, 2024
2 parents 321ea88 + dfc20c5 commit 0f9c021
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions tinyxml2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0f9c021

Please sign in to comment.