Ignore:
Timestamp:
02/19/11 14:15:38 (2 years ago)
Author:
glennrp
Message:

Reverted latest change to coders/png.c

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ImageMagick/trunk/coders/png.c

    r3624 r3629  
    9292/* #define PNG_NORETURN     This function does not return */ 
    9393/* #define PNG_ALLOCATED    The result of the function is new memory */ 
    94 #if (PNG_LIBPNG_VER >= 10400 && PNG_LIBPNG_VER < 10500) 
    95    #define PNG_DEPSTRUCT  /* Access to this struct member is deprecated */ 
    96 #endif 
     94/* #define PNG_DEPSTRUCT    Access to this struct member is deprecated */ 
    9795 
    9896#include "png.h" 
     
    13481346 
    13491347#if (PNG_LIBPNG_VER < 10500) 
     1348  /* A warning about deprecated use of jmpbuf here is unavoidable if you 
     1349   * are building with libpng-1.4.x and can be ignored. 
     1350   */ 
    13501351  longjmp(ping->jmpbuf,1); 
    13511352#else 
     
    17341735  ping_pixels=(unsigned char *) NULL; 
    17351736 
    1736 #if (PNG_LIBPNG_VER < 10400 || PNG_LIBPNG_VER >= 10500) 
    17371737  if (setjmp(png_jmpbuf(ping))) 
    1738 #else 
    1739   /* Warning is unavoidable if #define PNG_DEPSTRUCT is not defined */ 
    1740   if (setjmp(ping->jmpbuf)) 
    1741 #endif 
    17421738    { 
    17431739      /* 
     
    24002396    Convert PNG pixels to pixel packets. 
    24012397  */ 
    2402 #if (PNG_LIBPNG_VER < 10400 || PNG_LIBPNG_VER >= 10500) 
    24032398  if (setjmp(png_jmpbuf(ping))) 
    2404 #else 
    2405   /* Warning is unavoidable if #define PNG_DEPSTRUCT is not defined */ 
    2406   if (setjmp(ping->jmpbuf)) 
    2407 #endif 
    24082399    { 
    24092400      /* 
     
    74527443  ping_pixels=(unsigned char *) NULL; 
    74537444 
    7454 #if (PNG_LIBPNG_VER < 10400 || PNG_LIBPNG_VER >= 10500) 
    74557445  if (setjmp(png_jmpbuf(ping))) 
    7456 #else 
    7457   /* Warning is unavoidable if #define PNG_DEPSTRUCT is not defined */ 
    7458   if (setjmp(ping->jmpbuf)) 
    7459 #endif 
    74607446    { 
    74617447      /* 
     
    87508736    Initialize image scanlines. 
    87518737  */ 
    8752 #if (PNG_LIBPNG_VER < 10400 || PNG_LIBPNG_VER >= 10500) 
    87538738  if (setjmp(png_jmpbuf(ping))) 
    8754 #else 
    8755   /* Warning is unavoidable if #define PNG_DEPSTRUCT is not defined */ 
    8756   if (setjmp(ping->jmpbuf)) 
    8757 #endif 
    87588739    { 
    87598740      /* 
Note: See TracChangeset for help on using the changeset viewer.