diff --git a/source/build/include/lz4.h b/source/build/include/lz4.h index 0dfa19e00..cbdc9e4b9 100644 --- a/source/build/include/lz4.h +++ b/source/build/include/lz4.h @@ -39,6 +39,8 @@ extern "C" { #ifndef LZ4_H_2983827168210 #define LZ4_H_2983827168210 +#define LZ4_VISIBILITY + /* --- Dependency --- */ #include /* size_t */ diff --git a/source/build/src/miniz_tdef.c b/source/build/src/miniz_tdef.c index 3f71dfa80..86c7ba2e0 100644 --- a/source/build/src/miniz_tdef.c +++ b/source/build/src/miniz_tdef.c @@ -1484,7 +1484,7 @@ void *tdefl_write_image_to_png_file_in_memory_ex(const void *pImage, int w, int for (y = 0; y < h; ++y) { tdefl_compress_buffer(pComp, &z, 1, TDEFL_NO_FLUSH); - tdefl_compress_buffer(pComp, (mz_uint8 *)pImage + (flip ? (h - 1 - y) : y) * bpl, bpl, TDEFL_NO_FLUSH); + tdefl_compress_buffer(pComp, (mz_uint8 const *)pImage + (flip ? (h - 1 - y) : y) * bpl, bpl, TDEFL_NO_FLUSH); } if (tdefl_compress_buffer(pComp, NULL, 0, TDEFL_FINISH) != TDEFL_STATUS_DONE) {