| 1 | Modifications from the internal fork of the python-pytorch package.
|
| 2 |
|
| 3 | diff --git a/miniz.h b/miniz.h
|
| 4 | index 2f86380..336d33d 100644
|
| 5 | |
| 6 | |
| 7 | @@ -123,7 +123,7 @@
|
| 8 | /* If MINIZ_NO_TIME is specified then the ZIP archive functions will not be able to get the current time, or */
|
| 9 | /* get/set file times, and the C run-time funcs that get/set times won't be called. */
|
| 10 | /* The current downside is the times written to your archives will be from 1979. */
|
| 11 | -/*#define MINIZ_NO_TIME */
|
| 12 | +#define MINIZ_NO_TIME
|
| 13 |
|
| 14 | /* Define MINIZ_NO_DEFLATE_APIS to disable all compression API's. */
|
| 15 | /*#define MINIZ_NO_DEFLATE_APIS */
|
| 16 | @@ -141,7 +141,7 @@
|
| 17 | /*#define MINIZ_NO_ZLIB_APIS */
|
| 18 |
|
| 19 | /* Define MINIZ_NO_ZLIB_COMPATIBLE_NAME to disable zlib names, to prevent conflicts against stock zlib. */
|
| 20 | -/*#define MINIZ_NO_ZLIB_COMPATIBLE_NAMES */
|
| 21 | +#define MINIZ_NO_ZLIB_COMPATIBLE_NAMES
|
| 22 |
|
| 23 | /* Define MINIZ_NO_MALLOC to disable all calls to malloc, free, and realloc.
|
| 24 | Note if MINIZ_NO_MALLOC is defined then the user must always provide custom user alloc/free/realloc
|
| 25 | @@ -209,7 +209,6 @@
|
| 26 | #if MINIZ_X86_OR_X64_CPU
|
| 27 | /* Set MINIZ_USE_UNALIGNED_LOADS_AND_STORES to 1 on CPU's that permit efficient integer loads and stores from unaligned addresses. */
|
| 28 | #define MINIZ_USE_UNALIGNED_LOADS_AND_STORES 0
|
| 29 | -#define MINIZ_UNALIGNED_USE_MEMCPY
|
| 30 | #else
|
| 31 | #define MINIZ_USE_UNALIGNED_LOADS_AND_STORES 0
|
| 32 | #endif
|
| 33 | diff --git a/miniz_zip.h b/miniz_zip.h
|
| 34 | index 876d844..c9aa987 100644
|
| 35 | |
| 36 | |
| 37 | @@ -94,6 +94,7 @@ typedef enum {
|
| 38 | MZ_ZIP_FLAG_IGNORE_PATH = 0x0200,
|
| 39 | MZ_ZIP_FLAG_COMPRESSED_DATA = 0x0400,
|
| 40 | MZ_ZIP_FLAG_DO_NOT_SORT_CENTRAL_DIRECTORY = 0x0800,
|
| 41 | + MZ_ZIP_FLAG_DO_NOT_COMPUTE_CRC32 = 0x80000,
|
| 42 | MZ_ZIP_FLAG_VALIDATE_LOCATE_FILE_FLAG = 0x1000, /* if enabled, mz_zip_reader_locate_file() will be called on each file as its validated to ensure the func finds the file in the central dir (intended for testing) */
|
| 43 | MZ_ZIP_FLAG_VALIDATE_HEADERS_ONLY = 0x2000, /* validate the local headers, but don't decompress the entire file and check the crc32 */
|
| 44 | MZ_ZIP_FLAG_WRITE_ZIP64 = 0x4000, /* always use the zip64 file format, instead of the original zip file format with automatic switch to zip64. Use as flags parameter with mz_zip_writer_init*_v2 */
|
| 45 | @@ -151,7 +152,7 @@ typedef enum {
|
| 46 | MZ_ZIP_TOTAL_ERRORS
|
| 47 | } mz_zip_error;
|
| 48 |
|
| 49 | -typedef struct
|
| 50 | +typedef struct mz_zip_archive
|
| 51 | {
|
| 52 | mz_uint64 m_archive_size;
|
| 53 | mz_uint64 m_central_directory_file_ofs;
|