1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-23 14:42:29 +01:00

Adapt for libpng changes

This commit is contained in:
Tamas TEVESZ
2011-03-21 18:40:01 +01:00
committed by Carlos R. Mafra
parent 7feb59251e
commit 43c7abe79f

View File

@@ -76,7 +76,11 @@ RImage *RLoadPNG(RContext * context, char *file)
} }
RErrorCode = RERR_INTERNAL; RErrorCode = RERR_INTERNAL;
#if PNG_LIBPNG_VER - 0 < 10400
if (setjmp(png->jmpbuf)) { if (setjmp(png->jmpbuf)) {
#else
if (setjmp(png_jmpbuf(png))) {
#endif
fclose(f); fclose(f);
png_destroy_read_struct(&png, &pinfo, &einfo); png_destroy_read_struct(&png, &pinfo, &einfo);
if (image) if (image)