OLD | NEW |
1 /* | 1 /* |
2 Additional tools for Minizip | 2 Additional tools for Minizip |
3 Code: Xavier Roche '2004 | 3 Code: Xavier Roche '2004 |
4 License: Same as ZLIB (www.gzip.org) | 4 License: Same as ZLIB (www.gzip.org) |
5 */ | 5 */ |
6 | 6 |
7 #ifndef _zip_tools_H | 7 #ifndef _zip_tools_H |
8 #define _zip_tools_H | 8 #define _zip_tools_H |
9 | 9 |
10 #ifdef __cplusplus | 10 #ifdef __cplusplus |
11 extern "C" { | 11 extern "C" { |
12 #endif | 12 #endif |
13 | 13 |
| 14 #ifndef _ZLIB_H |
14 #if defined(USE_SYSTEM_ZLIB) | 15 #if defined(USE_SYSTEM_ZLIB) |
15 #include <zlib.h> | 16 #include <zlib.h> |
16 #else | 17 #else |
17 #include "third_party/zlib/zlib.h" | 18 #include "third_party/zlib/zlib.h" |
18 #endif | 19 #endif |
| 20 #endif |
19 | 21 |
20 #include "unzip.h" | 22 #include "unzip.h" |
21 | 23 |
22 /* Repair a ZIP file (missing central directory) | 24 /* Repair a ZIP file (missing central directory) |
23 file: file to recover | 25 file: file to recover |
24 fileOut: output file after recovery | 26 fileOut: output file after recovery |
25 fileOutTmp: temporary file name used for recovery | 27 fileOutTmp: temporary file name used for recovery |
26 */ | 28 */ |
27 extern int ZEXPORT unzRepair(const char* file, | 29 extern int ZEXPORT unzRepair(const char* file, |
28 const char* fileOut, | 30 const char* fileOut, |
29 const char* fileOutTmp, | 31 const char* fileOutTmp, |
30 uLong* nRecovered, | 32 uLong* nRecovered, |
31 uLong* bytesRecovered); | 33 uLong* bytesRecovered); |
32 | 34 |
33 #endif | 35 #endif |
OLD | NEW |