mirror of
https://github.com/QuasarApp/zip.git
synced 2025-04-27 12:54:32 +00:00
Fix clang build error on Windows (#280)
Co-authored-by: kas <exactly-one-kas@users.noreply.github.com>
This commit is contained in:
parent
7a57414261
commit
96825016ed
@ -4016,7 +4016,7 @@ void *tdefl_write_image_to_png_file_in_memory(const void *pImage, int w, int h,
|
|||||||
*/
|
*/
|
||||||
/* non-C language bindings to tdefL_ and tinfl_ API don't need to worry about */
|
/* non-C language bindings to tdefL_ and tinfl_ API don't need to worry about */
|
||||||
/* structure size and allocation mechanism. */
|
/* structure size and allocation mechanism. */
|
||||||
tdefl_compressor *tdefl_compressor_alloc() {
|
tdefl_compressor *tdefl_compressor_alloc(void) {
|
||||||
return (tdefl_compressor *)MZ_MALLOC(sizeof(tdefl_compressor));
|
return (tdefl_compressor *)MZ_MALLOC(sizeof(tdefl_compressor));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -4768,7 +4768,7 @@ int tinfl_decompress_mem_to_callback(const void *pIn_buf, size_t *pIn_buf_size,
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifndef MINIZ_NO_MALLOC
|
#ifndef MINIZ_NO_MALLOC
|
||||||
tinfl_decompressor *tinfl_decompressor_alloc() {
|
tinfl_decompressor *tinfl_decompressor_alloc(void) {
|
||||||
tinfl_decompressor *pDecomp =
|
tinfl_decompressor *pDecomp =
|
||||||
(tinfl_decompressor *)MZ_MALLOC(sizeof(tinfl_decompressor));
|
(tinfl_decompressor *)MZ_MALLOC(sizeof(tinfl_decompressor));
|
||||||
if (pDecomp)
|
if (pDecomp)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user