Fix build with giflib >= 5.1.0.
This commit is contained in:
parent
4cbc7346ff
commit
b901236261
4
image.c
4
image.c
@ -278,7 +278,11 @@ bool img_load_gif(img_t *img, const fileinfo_t *file)
|
|||||||
}
|
}
|
||||||
} while (rec != TERMINATE_RECORD_TYPE);
|
} while (rec != TERMINATE_RECORD_TYPE);
|
||||||
|
|
||||||
|
#if defined(GIFLIB_MAJOR) && GIFLIB_MAJOR >= 5 && GIFLIB_MINOR >= 1
|
||||||
|
DGifCloseFile(gif, NULL);
|
||||||
|
#else
|
||||||
DGifCloseFile(gif);
|
DGifCloseFile(gif);
|
||||||
|
#endif
|
||||||
|
|
||||||
if (err && !file->loaded)
|
if (err && !file->loaded)
|
||||||
warn("corrupted gif file: %s", file->name);
|
warn("corrupted gif file: %s", file->name);
|
||||||
|
Loading…
Reference in New Issue
Block a user