diff options
author | Tom Marshall <tdm@cyngn.com> | 2015-10-30 06:21:38 -0700 |
---|---|---|
committer | Steve Kondik <steve@cyngn.com> | 2016-08-24 11:05:14 -0700 |
commit | c451977158975f7462d08b9a854316ef8d6d7214 (patch) | |
tree | 69246efb68910a3c42a6176624a23c3c4ec6c064 | |
parent | cec8538e6162907d587c5229b81fc6a025cc1236 (diff) | |
download | android_external_zlib-c451977158975f7462d08b9a854316ef8d6d7214.tar.gz android_external_zlib-c451977158975f7462d08b9a854316ef8d6d7214.tar.bz2 android_external_zlib-c451977158975f7462d08b9a854316ef8d6d7214.zip |
zlib: Fix build under M
See bionic change Ic3cb409aae6713f4b345de954bcc4241fcd969ec
Change-Id: Ifb513b2c8e78c0f7035da39b475672d0d8cd37d4
-rw-r--r-- | src/contrib/minizip/ioapi.h | 2 | ||||
-rw-r--r-- | src/contrib/minizip/miniunz.c | 2 | ||||
-rw-r--r-- | src/contrib/minizip/minizip.c | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/contrib/minizip/ioapi.h b/src/contrib/minizip/ioapi.h index 8dcbdb0..3b7e4ee 100644 --- a/src/contrib/minizip/ioapi.h +++ b/src/contrib/minizip/ioapi.h @@ -21,7 +21,7 @@ #ifndef _ZLIBIOAPI64_H #define _ZLIBIOAPI64_H -#if (!defined(_WIN32)) && (!defined(WIN32)) && (!defined(__APPLE__)) +#if (!defined(_WIN32)) && (!defined(WIN32)) && (!defined(__APPLE__)) && (!defined(__ANDROID__)) // Linux needs this to support file operation on files larger then 4+GB // But might need better if/def to select just the platforms that needs them. diff --git a/src/contrib/minizip/miniunz.c b/src/contrib/minizip/miniunz.c index 3d65401..07bbe21 100644 --- a/src/contrib/minizip/miniunz.c +++ b/src/contrib/minizip/miniunz.c @@ -12,7 +12,7 @@ Copyright (C) 2009-2010 Mathias Svensson ( http://result42.com ) */ -#if (!defined(_WIN32)) && (!defined(WIN32)) && (!defined(__APPLE__)) +#if (!defined(_WIN32)) && (!defined(WIN32)) && (!defined(__APPLE__)) && (!defined(__ANDROID__)) #ifndef __USE_FILE_OFFSET64 #define __USE_FILE_OFFSET64 #endif diff --git a/src/contrib/minizip/minizip.c b/src/contrib/minizip/minizip.c index 4288962..a891af0 100644 --- a/src/contrib/minizip/minizip.c +++ b/src/contrib/minizip/minizip.c @@ -13,7 +13,7 @@ */ -#if (!defined(_WIN32)) && (!defined(WIN32)) && (!defined(__APPLE__)) +#if (!defined(_WIN32)) && (!defined(WIN32)) && (!defined(__APPLE__)) && (!defined(__ANDROID__)) #ifndef __USE_FILE_OFFSET64 #define __USE_FILE_OFFSET64 #endif @@ -28,7 +28,7 @@ #endif #endif -#ifdef __APPLE__ +#if defined(__APPLE__) || defined(__ANDROID__) // In darwin and perhaps other BSD variants off_t is a 64 bit value, hence no need for specific 64 bit functions #define FOPEN_FUNC(filename, mode) fopen(filename, mode) #define FTELLO_FUNC(stream) ftello(stream) |