diff options
author | Xavier Roche <xroche@users.noreply.github.com> | 2014-05-24 07:45:12 +0000 |
---|---|---|
committer | Xavier Roche <xroche@users.noreply.github.com> | 2014-05-24 07:45:12 +0000 |
commit | 796c62f07ca43682af6fa77979ac02355aa984c4 (patch) | |
tree | a83df5c0ac19f7a3e65967f7f5e0f728c2ccd58c /src/minizip/zip.c.diff | |
parent | cefcc0426613cc761373e785980c87c77f8a8cb5 (diff) |
Diff are better.
Diffstat (limited to 'src/minizip/zip.c.diff')
-rw-r--r-- | src/minizip/zip.c.diff | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/minizip/zip.c.diff b/src/minizip/zip.c.diff new file mode 100644 index 0000000..10ea3ca --- /dev/null +++ b/src/minizip/zip.c.diff @@ -0,0 +1,34 @@ +--- zip.c.orig 2014-05-23 15:29:40.975965289 +0200 ++++ zip.c 2014-05-23 15:29:40.975965289 +0200 +@@ -7,8 +7,13 @@ + */
+
+
++#ifndef _WIN32_WCE + #include <stdio.h>
+ #include <stdlib.h>
++#else ++#include <stdio.h> ++#include "celib.h" ++#endif + #include <string.h>
+ #include <time.h>
+ #include "zlib.h"
+@@ -1178,3 +1183,17 @@ +
+ return err;
+ }
++ ++extern int ZEXPORT zipFlush (file) ++ zipFile file; ++{ ++ zip_internal* zi; ++ if (file == NULL) ++ return ZIP_PARAMERROR; ++ zi = (zip_internal*)file; ++ ++ if (zi->z_filefunc.zflush_file != NULL && zi->filestream != NULL) ++ return ZFLUSH(zi->z_filefunc,zi->filestream); ++ else ++ return EOF; ++} |