summaryrefslogtreecommitdiff
path: root/src/minizip/ioapi.c.diff
diff options
context:
space:
mode:
authorXavier Roche <xroche@users.noreply.github.com>2014-05-24 07:45:12 +0000
committerXavier Roche <xroche@users.noreply.github.com>2014-05-24 07:45:12 +0000
commit796c62f07ca43682af6fa77979ac02355aa984c4 (patch)
treea83df5c0ac19f7a3e65967f7f5e0f728c2ccd58c /src/minizip/ioapi.c.diff
parentcefcc0426613cc761373e785980c87c77f8a8cb5 (diff)
Diff are better.
Diffstat (limited to 'src/minizip/ioapi.c.diff')
-rw-r--r--src/minizip/ioapi.c.diff51
1 files changed, 51 insertions, 0 deletions
diff --git a/src/minizip/ioapi.c.diff b/src/minizip/ioapi.c.diff
new file mode 100644
index 0000000..045d959
--- /dev/null
+++ b/src/minizip/ioapi.c.diff
@@ -0,0 +1,51 @@
+--- 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));
++
+ 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;
++{
++ 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;
++ 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;