mirror of
https://github.com/zlib-ng/minizip-ng
synced 2026-08-25 14:26:08 -04:00
Fixed issues with XZ compression when using libcompression.
This commit is contained in:
parent
9667101258
commit
1a7e7e4a4c
5 changed files with 59 additions and 53 deletions
|
|
@ -101,7 +101,6 @@ int32_t minizip_help(void) {
|
|||
int32_t minizip_list(const char *path) {
|
||||
mz_zip_file *file_info = NULL;
|
||||
uint32_t ratio = 0;
|
||||
int16_t level = 0;
|
||||
int32_t err = MZ_OK;
|
||||
struct tm tmu_date;
|
||||
const char *method = NULL;
|
||||
|
|
@ -580,7 +579,7 @@ int main(int argc, const char *argv[]) {
|
|||
err = MZ_SUPPORT_ERROR;
|
||||
#endif
|
||||
else if ((c == 'n') || (c == 'N'))
|
||||
#ifdef HAVE_LZMA
|
||||
#if defined(HAVE_LZMA) || defined(HAVE_LIBCOMP)
|
||||
options.compress_method = MZ_COMPRESS_METHOD_XZ;
|
||||
#else
|
||||
err = MZ_SUPPORT_ERROR;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue