summaryrefslogtreecommitdiff
path: root/src/minizip/ioapi.c.diff
diff options
context:
space:
mode:
authorXavier Roche <xroche@users.noreply.github.com>2014-06-22 10:22:39 +0000
committerXavier Roche <xroche@users.noreply.github.com>2014-06-22 10:22:39 +0000
commitd0d62c059867a54ba6c6631b269b1474d82e7018 (patch)
treedd40daf3cbd988de6aa7ae96b7e44e89be234c64 /src/minizip/ioapi.c.diff
parent027fe3a5ee5d4e34912752c2410f6a6debe7e6b4 (diff)
No fopen64() on Android.
Diffstat (limited to 'src/minizip/ioapi.c.diff')
-rw-r--r--src/minizip/ioapi.c.diff11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/minizip/ioapi.c.diff b/src/minizip/ioapi.c.diff
index 5040b08..c42c349 100644
--- a/src/minizip/ioapi.c.diff
+++ b/src/minizip/ioapi.c.diff
@@ -1,5 +1,14 @@
--- ioapi.c.orig 2014-06-10 18:55:32.778807408 +0200
-+++ ioapi.c 2014-06-10 20:01:51.657679218 +0200
++++ ioapi.c 2014-06-22 12:22:06.606696274 +0200
+@@ -14,7 +14,7 @@
+ #define _CRT_SECURE_NO_WARNINGS
+ #endif
+
+-#if defined(__APPLE__) || defined(IOAPI_NO_64)
++#if defined(__APPLE__) || defined(__ANDROID__) || defined(IOAPI_NO_64)
+ // 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)
@@ -73,6 +73,7 @@
p_filefunc64_32->zfile_func64.zerror_file = p_filefunc32->zerror_file;
p_filefunc64_32->zfile_func64.zread_file = p_filefunc32->zread_file;