Changeset 3629 for ImageMagick/trunk/coders/png.c
- Timestamp:
- 02/19/11 14:15:38 (2 years ago)
- File:
-
- 1 edited
-
ImageMagick/trunk/coders/png.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ImageMagick/trunk/coders/png.c
r3624 r3629 92 92 /* #define PNG_NORETURN This function does not return */ 93 93 /* #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 */ 97 95 98 96 #include "png.h" … … 1348 1346 1349 1347 #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 */ 1350 1351 longjmp(ping->jmpbuf,1); 1351 1352 #else … … 1734 1735 ping_pixels=(unsigned char *) NULL; 1735 1736 1736 #if (PNG_LIBPNG_VER < 10400 || PNG_LIBPNG_VER >= 10500)1737 1737 if (setjmp(png_jmpbuf(ping))) 1738 #else1739 /* Warning is unavoidable if #define PNG_DEPSTRUCT is not defined */1740 if (setjmp(ping->jmpbuf))1741 #endif1742 1738 { 1743 1739 /* … … 2400 2396 Convert PNG pixels to pixel packets. 2401 2397 */ 2402 #if (PNG_LIBPNG_VER < 10400 || PNG_LIBPNG_VER >= 10500)2403 2398 if (setjmp(png_jmpbuf(ping))) 2404 #else2405 /* Warning is unavoidable if #define PNG_DEPSTRUCT is not defined */2406 if (setjmp(ping->jmpbuf))2407 #endif2408 2399 { 2409 2400 /* … … 7452 7443 ping_pixels=(unsigned char *) NULL; 7453 7444 7454 #if (PNG_LIBPNG_VER < 10400 || PNG_LIBPNG_VER >= 10500)7455 7445 if (setjmp(png_jmpbuf(ping))) 7456 #else7457 /* Warning is unavoidable if #define PNG_DEPSTRUCT is not defined */7458 if (setjmp(ping->jmpbuf))7459 #endif7460 7446 { 7461 7447 /* … … 8750 8736 Initialize image scanlines. 8751 8737 */ 8752 #if (PNG_LIBPNG_VER < 10400 || PNG_LIBPNG_VER >= 10500)8753 8738 if (setjmp(png_jmpbuf(ping))) 8754 #else8755 /* Warning is unavoidable if #define PNG_DEPSTRUCT is not defined */8756 if (setjmp(ping->jmpbuf))8757 #endif8758 8739 { 8759 8740 /*
Note: See TracChangeset
for help on using the changeset viewer.
