Skip to content

Commit

Permalink
Android SDK<24 doesn’t support fseeko/ftello
Browse files Browse the repository at this point in the history
Fall back to using fseek/ftell;
This was broken by d9fb8d3
  • Loading branch information
davidoakley committed Apr 8, 2024
1 parent 321ea88 commit dfc20c5
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 dfc20c5

Please sign in to comment.