summaryrefslogtreecommitdiff
path: root/pngmem.c
diff options
context:
space:
mode:
authorGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2009-09-01 10:48:04 -0500
committerGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2009-09-01 10:48:04 -0500
commit5618e46179aa7fd8f8d07c4246a368fd8bb93b4a (patch)
tree6214196c79222baf83bc97fc8883b10fa3aa9389 /pngmem.c
parentb380515c84ea4d22fd7a6b108609ec8adaf8d1f4 (diff)
downloadlibpng-5618e46179aa7fd8f8d07c4246a368fd8bb93b4a.tar.gz
[devel] Eliminated PNG_NO_CALLOC and PNG_CALLOC_SUPPORTED
and always use png_calloc(). The macros were only there for testing, since libpng-1.4.0beta48 and no problems have been reported.
Diffstat (limited to 'pngmem.c')
-rw-r--r--pngmem.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/pngmem.c b/pngmem.c
index 6f6907d76..ade246d97 100644
--- a/pngmem.c
+++ b/pngmem.c
@@ -1,7 +1,7 @@
/* pngmem.c - stub functions for memory allocation
*
- * Last changed in libpng 1.4.0 [August 31, 2009]
+ * Last changed in libpng 1.4.0 [September 1, 2009]
* Copyright (c) 1998-2009 Glenn Randers-Pehrson
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
* (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
@@ -114,7 +114,6 @@ png_destroy_struct_2(png_voidp struct_ptr, png_free_ptr free_fn,
* result, we would be truncating potentially larger memory requests
* (which should cause a fatal error) and introducing major problems.
*/
-#ifdef PNG_CALLOC_SUPPORTED
png_voidp PNGAPI
png_calloc(png_structp png_ptr, png_alloc_size_t size)
{
@@ -125,7 +124,6 @@ png_calloc(png_structp png_ptr, png_alloc_size_t size)
png_memset(ret,0,(png_size_t)size);
return (ret);
}
-#endif
png_voidp PNGAPI
png_malloc(png_structp png_ptr, png_alloc_size_t size)