summaryrefslogtreecommitdiff
path: root/src/minizip/ioapi.c.diff
diff options
context:
space:
mode:
authorXavier Roche <xroche@users.noreply.github.com>2014-05-24 07:56:11 +0000
committerXavier Roche <xroche@users.noreply.github.com>2014-05-24 07:56:11 +0000
commit882578ed9a39a03d7f08183fdec12dce7da00588 (patch)
treec642884dad62d62159d7a507586bfe851c9e1a69 /src/minizip/ioapi.c.diff
parent1ec8b5fb9e57025da7bd88b648b2f9ed19f70510 (diff)
Upgraded to minizip 1.1 from zlib 1.2.8
Diffstat (limited to 'src/minizip/ioapi.c.diff')
-rw-r--r--src/minizip/ioapi.c.diff69
1 files changed, 25 insertions, 44 deletions
diff --git a/src/minizip/ioapi.c.diff b/src/minizip/ioapi.c.diff
index 045d959..17153cb 100644
--- a/src/minizip/ioapi.c.diff
+++ b/src/minizip/ioapi.c.diff
@@ -1,51 +1,32 @@
---- ioapi.c.orig 2014-05-23 15:29:40.975965289 +0200
-+++ ioapi.c 2014-05-23 15:29:40.975965289 +0200
-@@ -6,8 +6,13 @@
- Copyright (C) 1998-2003 Gilles Vollant
- */
-
-+#ifndef _WIN32_WCE
- #include <stdio.h>
- #include <stdlib.h>
-+#else
-+#include <stdio.h>
-+//#include "celib.h"
-+#endif
- #include <string.h>
-
- #include "zlib.h"
-@@ -56,6 +61,10 @@
- uLong offset,
- int origin));
-
-+int ZCALLBACK fflush_file_func OF((
-+ voidpf opaque,
-+ voidpf stream));
+--- ioapi.c.orig 2014-05-24 09:54:26.298884453 +0200
++++ ioapi.c 2014-05-24 09:50:22.708762308 +0200
+@@ -89,6 +89,8 @@
+ static uLong ZCALLBACK fwrite_file_func OF((voidpf opaque, voidpf stream, const void* buf,uLong size));
+ static ZPOS64_T ZCALLBACK ftell64_file_func OF((voidpf opaque, voidpf stream));
+ static long ZCALLBACK fseek64_file_func OF((voidpf opaque, voidpf stream, ZPOS64_T offset, int origin));
++static int ZCALLBACK fflush_file_func OF((voidpf opaque, voidpf stream));
+
- int ZCALLBACK fclose_file_func OF((
- voidpf opaque,
- voidpf stream));
-@@ -145,6 +154,15 @@
- return ret;
- }
-
-+int ZCALLBACK fflush_file_func (opaque, stream)
-+ voidpf opaque;
-+ voidpf stream;
+ static int ZCALLBACK fclose_file_func OF((voidpf opaque, voidpf stream));
+ static int ZCALLBACK ferror_file_func OF((voidpf opaque, voidpf stream));
+
+@@ -206,6 +208,12 @@
+ return ret;
+ }
+
++static int ZCALLBACK fflush_file_func (voidpf opaque, voidpf stream)
+{
+ int ret;
+ ret = fflush((FILE *)stream);
+ return ret;
+}
-+
- int ZCALLBACK fclose_file_func (opaque, stream)
- voidpf opaque;
- voidpf stream;
-@@ -171,6 +189,7 @@
- pzlib_filefunc_def->zwrite_file = fwrite_file_func;
- pzlib_filefunc_def->ztell_file = ftell_file_func;
- pzlib_filefunc_def->zseek_file = fseek_file_func;
+
+ static int ZCALLBACK fclose_file_func (voidpf opaque, voidpf stream)
+ {
+@@ -229,6 +237,7 @@
+ pzlib_filefunc_def->zwrite_file = fwrite_file_func;
+ pzlib_filefunc_def->ztell_file = ftell_file_func;
+ pzlib_filefunc_def->zseek_file = fseek_file_func;
+ pzlib_filefunc_def->zflush_file = fflush_file_func;
- pzlib_filefunc_def->zclose_file = fclose_file_func;
- pzlib_filefunc_def->zerror_file = ferror_file_func;
- pzlib_filefunc_def->opaque = NULL;
+ pzlib_filefunc_def->zclose_file = fclose_file_func;
+ pzlib_filefunc_def->zerror_file = ferror_file_func;
+ pzlib_filefunc_def->opaque = NULL;