diff options
-rw-r--r-- | src/minizip/ioapi.h | 1 | ||||
-rw-r--r-- | src/minizip/ioapi.h.diff | 14 |
2 files changed, 12 insertions, 3 deletions
diff --git a/src/minizip/ioapi.h b/src/minizip/ioapi.h index 3f4a0db..3c40c53 100644 --- a/src/minizip/ioapi.h +++ b/src/minizip/ioapi.h @@ -149,6 +149,7 @@ typedef struct zlib_filefunc_def_s open_file_func zopen_file; read_file_func zread_file; write_file_func zwrite_file; + flush_file_func zflush_file; tell_file_func ztell_file; seek_file_func zseek_file; close_file_func zclose_file; diff --git a/src/minizip/ioapi.h.diff b/src/minizip/ioapi.h.diff index 6f17bc4..d652d6c 100644 --- a/src/minizip/ioapi.h.diff +++ b/src/minizip/ioapi.h.diff @@ -1,5 +1,5 @@ ---- ioapi.h.orig 2014-05-24 09:54:26.302884145 +0200 -+++ ioapi.h 2014-05-24 09:47:36.375502868 +0200 +--- ioapi.h.orig 2012-01-17 03:51:31.000000000 +0100 ++++ ioapi.h 2014-05-24 10:16:20.801709594 +0200 @@ -135,6 +135,7 @@ typedef voidpf (ZCALLBACK *open_file_func) OF((voidpf opaque, const char* filename, int mode)); typedef uLong (ZCALLBACK *read_file_func) OF((voidpf opaque, voidpf stream, void* buf, uLong size)); @@ -8,7 +8,15 @@ typedef int (ZCALLBACK *close_file_func) OF((voidpf opaque, voidpf stream)); typedef int (ZCALLBACK *testerror_file_func) OF((voidpf opaque, voidpf stream)); -@@ -186,6 +187,7 @@ +@@ -148,6 +149,7 @@ + open_file_func zopen_file; + read_file_func zread_file; + write_file_func zwrite_file; ++ flush_file_func zflush_file; + tell_file_func ztell_file; + seek_file_func zseek_file; + close_file_func zclose_file; +@@ -186,6 +188,7 @@ #define ZREAD64(filefunc,filestream,buf,size) ((*((filefunc).zfile_func64.zread_file)) ((filefunc).zfile_func64.opaque,filestream,buf,size)) #define ZWRITE64(filefunc,filestream,buf,size) ((*((filefunc).zfile_func64.zwrite_file)) ((filefunc).zfile_func64.opaque,filestream,buf,size)) |