diff options
Diffstat (limited to 'contrib/minizip/minizip.c')
-rw-r--r-- | contrib/minizip/minizip.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/contrib/minizip/minizip.c b/contrib/minizip/minizip.c index 4ce33af..ca26091 100644 --- a/contrib/minizip/minizip.c +++ b/contrib/minizip/minizip.c | |||
@@ -13,7 +13,7 @@ | |||
13 | */ | 13 | */ |
14 | 14 | ||
15 | 15 | ||
16 | #ifndef _WIN32 | 16 | #ifndef _WIN32 |
17 | #ifndef __USE_FILE_OFFSET64 | 17 | #ifndef __USE_FILE_OFFSET64 |
18 | #define __USE_FILE_OFFSET64 | 18 | #define __USE_FILE_OFFSET64 |
19 | #endif | 19 | #endif |
@@ -219,15 +219,15 @@ int isLargeFile(const char* filename) | |||
219 | int n = fseeko64(pFile, 0, SEEK_END); | 219 | int n = fseeko64(pFile, 0, SEEK_END); |
220 | 220 | ||
221 | pos = ftello64(pFile); | 221 | pos = ftello64(pFile); |
222 | 222 | ||
223 | printf("File : %s is %lld bytes\n", filename, pos); | 223 | printf("File : %s is %lld bytes\n", filename, pos); |
224 | 224 | ||
225 | if(pos >= 0xffffffff) | 225 | if(pos >= 0xffffffff) |
226 | largeFile = 1; | 226 | largeFile = 1; |
227 | 227 | ||
228 | fclose(pFile); | 228 | fclose(pFile); |
229 | } | 229 | } |
230 | 230 | ||
231 | return largeFile; | 231 | return largeFile; |
232 | } | 232 | } |
233 | 233 | ||
@@ -406,7 +406,7 @@ int main(argc,argv) | |||
406 | */ | 406 | */ |
407 | if ((password != NULL) && (err==ZIP_OK)) | 407 | if ((password != NULL) && (err==ZIP_OK)) |
408 | err = getFileCrc(filenameinzip,buf,size_buf,&crcFile); | 408 | err = getFileCrc(filenameinzip,buf,size_buf,&crcFile); |
409 | 409 | ||
410 | zip64 = isLargeFile(filenameinzip); | 410 | zip64 = isLargeFile(filenameinzip); |
411 | 411 | ||
412 | /* The path name saved, should not include a leading slash. */ | 412 | /* The path name saved, should not include a leading slash. */ |