diff --git a/contrib/minizip/ioapi.c b/contrib/minizip/ioapi.c index 7f5c191b..6d4590ce 100644 --- a/contrib/minizip/ioapi.c +++ b/contrib/minizip/ioapi.c @@ -14,8 +14,9 @@ #define _CRT_SECURE_NO_WARNINGS #endif -#if defined(__APPLE__) || defined(IOAPI_NO_64) +#if defined(__APPLE__) || defined(IOAPI_NO_64) || (__ANDROID_API__ && __ANDROID_API__ < 24) // In darwin and perhaps other BSD variants off_t is a 64 bit value, hence no need for specific 64 bit functions +// Android gained these functions in version 24. #define FOPEN_FUNC(filename, mode) fopen(filename, mode) #define FTELLO_FUNC(stream) ftello(stream) #define FSEEKO_FUNC(stream, offset, origin) fseeko(stream, offset, origin)