minizip: Try to fix building

Might fix #730.
This commit is contained in:
Timothy Gu 2015-06-23 14:06:05 +08:00
parent 9816446b2e
commit 63692baca1
1 changed files with 4 additions and 1 deletions

View File

@ -4,6 +4,9 @@ See index.html for further information.
This patch has been taken from:
https://github.com/Alexpux/MINGW-packages/tree/master/mingw-w64-zlib
Modifications have been made to accomodate for commit.
nmoinvaz/minizip@9bccc22efb2d.
From c162a3620a3d0d317f59af8ddc2d1605bf5ee4b3 Mon Sep 17 00:00:00 2001
From: martell <martellmalone@gmail.com>
Date: Sat, 11 Oct 2014 03:32:38 +0100
@ -50,7 +53,7 @@ index ce02265..bb72a66 100644
+ zlib_filefunc64_32_def memory_file;
+ sprintf(path, "%llx %lx", (unsigned long long)buffer, (unsigned long)size);
+ fill_memory_filefunc(&memory_file, &FileMemory);
+ return unzOpenInternal(path, &memory_file, 0);
+ return unzOpenInternal(path, &memory_file);
+}
+
extern int ZEXPORT unzClose(unzFile file)