Avoid "64" functions on Android < 24.

pull/436/head
Jay Krell 6 years ago
parent 79baebe50e
commit 898c339649
  1. 3
      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)

Loading…
Cancel
Save