Show
Ignore:
Timestamp:
02/15/10 11:56:43 (2 years ago)
Author:
Carsten
Message:

Merged latest libpng upgrade in vendor/libpng to cafu/trunk/ExtLibs/libpng.

Note that this implements the "Vendor Branches" strategy described in the Subversion book at
 http://svnbook.red-bean.com/nightly/en/svn.branchmerge.basicmerging.html
 http://svnbook.red-bean.com/nightly/en/svn.advanced.vendorbr.html

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • cafu/trunk/ExtLibs/libpng/pngmem.c

    r11 r44  
    22/* pngmem.c - stub functions for memory allocation 
    33 * 
    4  * Last changed in libpng 1.2.37 [June 4, 2009] 
     4 * Last changed in libpng 1.2.41 [December 3, 2009] 
    55 * Copyright (c) 1998-2009 Glenn Randers-Pehrson 
    66 * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger) 
     
    1919 
    2020#define PNG_INTERNAL 
     21#define PNG_NO_PEDANTIC_WARNINGS 
    2122#include "png.h" 
    2223#if defined(PNG_READ_SUPPORTED) || defined(PNG_WRITE_SUPPORTED) 
     
    115116 * (which should cause a fatal error) and introducing major problems. 
    116117 */ 
     118png_voidp PNGAPI 
     119png_calloc(png_structp png_ptr, png_uint_32 size) 
     120{ 
     121   png_voidp ret; 
     122 
     123   ret = (png_malloc(png_ptr, size)); 
     124   if (ret != NULL) 
     125      png_memset(ret,0,(png_size_t)size); 
     126   return (ret); 
     127} 
    117128 
    118129png_voidp PNGAPI 
     
    432443 */ 
    433444 
     445png_voidp PNGAPI 
     446png_calloc(png_structp png_ptr, png_uint_32 size) 
     447{ 
     448   png_voidp ret; 
     449 
     450   ret = (png_malloc(png_ptr, size)); 
     451   if (ret != NULL) 
     452      png_memset(ret,0,(png_size_t)size); 
     453   return (ret); 
     454} 
    434455 
    435456png_voidp PNGAPI 
     
    539560#endif /* Not Borland DOS special memory handler */ 
    540561 
    541 #if defined(PNG_1_0_X) 
     562#ifdef PNG_1_0_X 
    542563#  define png_malloc_warn png_malloc 
    543564#else