mirror of
https://github.com/enduro2d/enduro2d.git
synced 2026-02-04 15:06:57 +07:00
update miniz to lastest master
This commit is contained in:
Submodule modules/miniz updated: e0c964c4a3...3a00ea8b73
6
sources/3rdparty/miniz/miniz.c
vendored
6
sources/3rdparty/miniz/miniz.c
vendored
@@ -82,6 +82,12 @@ mz_ulong mz_adler32(mz_ulong adler, const unsigned char *ptr, size_t buf_len)
|
||||
}
|
||||
return ~crcu32;
|
||||
}
|
||||
#elif defined(USE_EXTERNAL_MZCRC)
|
||||
/* If USE_EXTERNAL_CRC is defined, an external module will export the
|
||||
* mz_crc32() symbol for us to use, e.g. an SSE-accelerated version.
|
||||
* Depending on the impl, it may be necessary to ~ the input/output crc values.
|
||||
*/
|
||||
mz_ulong mz_crc32(mz_ulong crc, const mz_uint8 *ptr, size_t buf_len);
|
||||
#else
|
||||
/* Faster, but larger CPU cache footprint.
|
||||
*/
|
||||
|
||||
2
sources/3rdparty/miniz/miniz_zip.c
vendored
2
sources/3rdparty/miniz/miniz_zip.c
vendored
@@ -97,7 +97,7 @@ static FILE *mz_freopen(const char *pPath, const char *pMode, FILE *pStream)
|
||||
#define MZ_FFLUSH fflush
|
||||
#define MZ_FREOPEN(f, m, s) freopen(f, m, s)
|
||||
#define MZ_DELETE_FILE remove
|
||||
#elif defined(__GNUC__) && defined(_LARGEFILE64_SOURCE)
|
||||
#elif defined(__USE_LARGEFILE64) // gcc, clang
|
||||
#ifndef MINIZ_NO_TIME
|
||||
#include <utime.h>
|
||||
#endif
|
||||
|
||||
2
sources/3rdparty/miniz/miniz_zip.h
vendored
2
sources/3rdparty/miniz/miniz_zip.h
vendored
@@ -262,7 +262,7 @@ MINIZ_EXPORT mz_uint mz_zip_reader_get_filename(mz_zip_archive *pZip, mz_uint fi
|
||||
/* Valid flags: MZ_ZIP_FLAG_CASE_SENSITIVE, MZ_ZIP_FLAG_IGNORE_PATH */
|
||||
/* Returns -1 if the file cannot be found. */
|
||||
MINIZ_EXPORT int mz_zip_reader_locate_file(mz_zip_archive *pZip, const char *pName, const char *pComment, mz_uint flags);
|
||||
MINIZ_EXPORT int mz_zip_reader_locate_file_v2(mz_zip_archive *pZip, const char *pName, const char *pComment, mz_uint flags, mz_uint32 *file_index);
|
||||
MINIZ_EXPORT mz_bool mz_zip_reader_locate_file_v2(mz_zip_archive *pZip, const char *pName, const char *pComment, mz_uint flags, mz_uint32 *file_index);
|
||||
|
||||
/* Returns detailed information about an archive file entry. */
|
||||
MINIZ_EXPORT mz_bool mz_zip_reader_file_stat(mz_zip_archive *pZip, mz_uint file_index, mz_zip_archive_file_stat *pStat);
|
||||
|
||||
Reference in New Issue
Block a user