summaryrefslogtreecommitdiff
path: root/third_party/libpng16/0000-build-config.patch
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/libpng16/0000-build-config.patch')
-rw-r--r--third_party/libpng16/0000-build-config.patch8
1 files changed, 4 insertions, 4 deletions
diff --git a/third_party/libpng16/0000-build-config.patch b/third_party/libpng16/0000-build-config.patch
index 5c30866405..325b58fe02 100644
--- a/third_party/libpng16/0000-build-config.patch
+++ b/third_party/libpng16/0000-build-config.patch
@@ -5,8 +5,8 @@ diff a/third_party/libpng16/pngmem.c b/third_party/libpng16/pngmem.c
#include "pngpriv.h"
-+void* FXMEM_DefaultAlloc(int byte_size, int);
-+void FXMEM_DefaultFree(void* pointer, int);
++void* FXMEM_DefaultAlloc(size_t byte_size);
++void FXMEM_DefaultFree(void* pointer);
+
#if defined(PNG_READ_SUPPORTED) || defined(PNG_WRITE_SUPPORTED)
/* Free a png_struct */
@@ -16,7 +16,7 @@ diff a/third_party/libpng16/pngmem.c b/third_party/libpng16/pngmem.c
else
#endif
- return malloc((size_t)size); /* checked for truncation above */
-+ return FXMEM_DefaultAlloc((int)size, 0);
++ return FXMEM_DefaultAlloc(size);
}
else
@@ -25,7 +25,7 @@ diff a/third_party/libpng16/pngmem.c b/third_party/libpng16/pngmem.c
#endif /* USER_MEM */
- free(ptr);
-+ FXMEM_DefaultFree(ptr, 0);
++ FXMEM_DefaultFree(ptr);
}
#ifdef PNG_USER_MEM_SUPPORTED