@@ -3397,6 +3397,7 @@ static int mz_stat64(const char *path, struct __stat64 *buffer)
3397
3397
return MZ_TRUE;
3398
3398
}
3399
3399
3400
+ #ifndef MINIZ_NO_ARCHIVE_WRITING_APIS
3400
3401
static MZ_FORCEINLINE mz_bool mz_zip_array_reserve (mz_zip_archive *pZip, mz_zip_array *pArray, size_t new_capacity, mz_uint growing)
3401
3402
{
3402
3403
if (new_capacity > pArray->m_capacity )
@@ -3406,6 +3407,7 @@ static int mz_stat64(const char *path, struct __stat64 *buffer)
3406
3407
}
3407
3408
return MZ_TRUE;
3408
3409
}
3410
+ #endif
3409
3411
3410
3412
static MZ_FORCEINLINE mz_bool mz_zip_array_resize (mz_zip_archive *pZip, mz_zip_array *pArray, size_t new_size, mz_uint growing)
3411
3413
{
@@ -3418,6 +3420,7 @@ static int mz_stat64(const char *path, struct __stat64 *buffer)
3418
3420
return MZ_TRUE;
3419
3421
}
3420
3422
3423
+ #ifndef MINIZ_NO_ARCHIVE_WRITING_APIS
3421
3424
static MZ_FORCEINLINE mz_bool mz_zip_array_ensure_room (mz_zip_archive *pZip, mz_zip_array *pArray, size_t n)
3422
3425
{
3423
3426
return mz_zip_array_reserve (pZip, pArray, pArray->m_size + n, MZ_TRUE);
@@ -3432,6 +3435,7 @@ static int mz_stat64(const char *path, struct __stat64 *buffer)
3432
3435
memcpy ((mz_uint8 *)pArray->m_p + orig_size * pArray->m_element_size , pElements, n * pArray->m_element_size );
3433
3436
return MZ_TRUE;
3434
3437
}
3438
+ #endif /* #ifndef MINIZ_NO_ARCHIVE_WRITING_APIS */
3435
3439
3436
3440
#ifndef MINIZ_NO_TIME
3437
3441
static MZ_TIME_T mz_zip_dos_to_time_t (int dos_time, int dos_date)
@@ -5781,6 +5785,7 @@ static int mz_stat64(const char *path, struct __stat64 *buffer)
5781
5785
return n;
5782
5786
}
5783
5787
5788
+ #ifndef MINIZ_NO_ARCHIVE_WRITING_APIS
5784
5789
static mz_bool mz_zip_writer_end_internal (mz_zip_archive *pZip, mz_bool set_last_error)
5785
5790
{
5786
5791
mz_zip_internal_state *pState;
@@ -7540,6 +7545,7 @@ static int mz_stat64(const char *path, struct __stat64 *buffer)
7540
7545
{
7541
7546
return mz_zip_writer_end_internal (pZip, MZ_TRUE);
7542
7547
}
7548
+ #endif /* #ifndef MINIZ_NO_ARCHIVE_WRITING_APIS */
7543
7549
7544
7550
#ifndef MINIZ_NO_STDIO
7545
7551
mz_bool mz_zip_add_mem_to_archive_file_in_place (const char *pZip_filename, const char *pArchive_name, const void *pBuf, size_t buf_size, const void *pComment, mz_uint16 comment_size, mz_uint level_and_flags)
0 commit comments