Skip to content

Commit

Permalink
Fix clang build error on Windows (kuba--#280)
Browse files Browse the repository at this point in the history
Co-authored-by: kas <exactly-one-kas@users.noreply.github.com>
  • Loading branch information
2 people authored and thabetx committed Sep 7, 2023
1 parent dec60f1 commit 2105257
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/miniz.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
/* structure size and allocation mechanism. */
tdefl_compressor *tdefl_compressor_alloc() {
tdefl_compressor *tdefl_compressor_alloc(void) {
return (tdefl_compressor *)MZ_MALLOC(sizeof(tdefl_compressor));
}

Expand Down Expand Up @@ -4768,7 +4768,7 @@ int tinfl_decompress_mem_to_callback(const void *pIn_buf, size_t *pIn_buf_size,
}

#ifndef MINIZ_NO_MALLOC
tinfl_decompressor *tinfl_decompressor_alloc() {
tinfl_decompressor *tinfl_decompressor_alloc(void) {
tinfl_decompressor *pDecomp =
(tinfl_decompressor *)MZ_MALLOC(sizeof(tinfl_decompressor));
if (pDecomp)
Expand Down

0 comments on commit 2105257

Please sign in to comment.