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:
committed by
Carlos R. Mafra
parent
7feb59251e
commit
43c7abe79f
@@ -76,7 +76,11 @@ RImage *RLoadPNG(RContext * context, char *file)
|
||||
}
|
||||
|
||||
RErrorCode = RERR_INTERNAL;
|
||||
#if PNG_LIBPNG_VER - 0 < 10400
|
||||
if (setjmp(png->jmpbuf)) {
|
||||
#else
|
||||
if (setjmp(png_jmpbuf(png))) {
|
||||
#endif
|
||||
fclose(f);
|
||||
png_destroy_read_struct(&png, &pinfo, &einfo);
|
||||
if (image)
|
||||
|
||||
Reference in New Issue
Block a user