| OLD | NEW |
| 1 /* unzip.c -- IO for uncompress .zip files using zlib | 1 /* unzip.c -- IO for uncompress .zip files using zlib |
| 2 Version 1.1, February 14h, 2010 | 2 Version 1.1, February 14h, 2010 |
| 3 part of the MiniZip project - ( http://www.winimage.com/zLibDll/minizip.html
) | 3 part of the MiniZip project - ( http://www.winimage.com/zLibDll/minizip.html
) |
| 4 | 4 |
| 5 Copyright (C) 1998-2010 Gilles Vollant (minizip) ( http://www.winimage.
com/zLibDll/minizip.html ) | 5 Copyright (C) 1998-2010 Gilles Vollant (minizip) ( http://www.winimage.
com/zLibDll/minizip.html ) |
| 6 | 6 |
| 7 Modifications of Unzip for Zip64 | 7 Modifications of Unzip for Zip64 |
| 8 Copyright (C) 2007-2008 Even Rouault | 8 Copyright (C) 2007-2008 Even Rouault |
| 9 | 9 |
| 10 Modifications for Zip64 support on both zip and unzip | 10 Modifications for Zip64 support on both zip and unzip |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 | 65 |
| 66 | 66 |
| 67 #include <stdio.h> | 67 #include <stdio.h> |
| 68 #include <stdlib.h> | 68 #include <stdlib.h> |
| 69 #include <string.h> | 69 #include <string.h> |
| 70 | 70 |
| 71 #ifndef NOUNCRYPT | 71 #ifndef NOUNCRYPT |
| 72 #define NOUNCRYPT | 72 #define NOUNCRYPT |
| 73 #endif | 73 #endif |
| 74 | 74 |
| 75 #if defined(USE_SYSTEM_ZLIB) | |
| 76 #include <zlib.h> | |
| 77 #else | |
| 78 #include "third_party/zlib/zlib.h" | 75 #include "third_party/zlib/zlib.h" |
| 79 #endif | |
| 80 #include "unzip.h" | 76 #include "unzip.h" |
| 81 | 77 |
| 82 #ifdef STDC | 78 #ifdef STDC |
| 83 # include <stddef.h> | 79 # include <stddef.h> |
| 84 # include <string.h> | 80 # include <string.h> |
| 85 # include <stdlib.h> | 81 # include <stdlib.h> |
| 86 #endif | 82 #endif |
| 87 #ifdef NO_ERRNO_H | 83 #ifdef NO_ERRNO_H |
| 88 extern int errno; | 84 extern int errno; |
| 89 #else | 85 #else |
| (...skipping 2030 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2120 &s->cur_file_info_internal, | 2116 &s->cur_file_info_internal, |
| 2121 NULL,0,NULL,0,NULL,0); | 2117 NULL,0,NULL,0,NULL,0); |
| 2122 s->current_file_ok = (err == UNZ_OK); | 2118 s->current_file_ok = (err == UNZ_OK); |
| 2123 return err; | 2119 return err; |
| 2124 } | 2120 } |
| 2125 | 2121 |
| 2126 extern int ZEXPORT unzSetOffset (unzFile file, uLong pos) | 2122 extern int ZEXPORT unzSetOffset (unzFile file, uLong pos) |
| 2127 { | 2123 { |
| 2128 return unzSetOffset64(file,pos); | 2124 return unzSetOffset64(file,pos); |
| 2129 } | 2125 } |
| OLD | NEW |