out_td: miniz: move unused def_realloc_func. re: richgel999/miniz/issues/49
@@ -1009,7 +1009,6 @@ void mz_free(void *p)
static void *def_alloc_func(void *opaque, size_t items, size_t size) { (void)opaque, (void)items, (void)size; return MZ_MALLOC(items * size); }
static void def_free_func(void *opaque, void *address) { (void)opaque, (void)address; MZ_FREE(address); }
-static void *def_realloc_func(void *opaque, void *address, size_t items, size_t size) { (void)opaque, (void)address, (void)items, (void)size; return MZ_REALLOC(address, items * size); }
const char *mz_version(void)
{
@@ -2860,6 +2859,8 @@ void *tdefl_write_image_to_png_file_in_memory(const void *pImage, int w, int h,
#ifndef MINIZ_NO_ARCHIVE_APIS
+ static void *def_realloc_func(void *opaque, void *address, size_t items, size_t size) { (void)opaque, (void)address, (void)items, (void)size; return MZ_REALLOC(address, items * size); }
+
#ifdef MINIZ_NO_STDIO
#define MZ_FILE void *
#else
