diff options
author | Bert Münnich <ber.t@posteo.de> | 2014-05-31 11:04:39 +0200 |
---|---|---|
committer | Bert Münnich <ber.t@posteo.de> | 2014-05-31 11:04:39 +0200 |
commit | 0f7b26d33d29b9654ccf3c80a8bd5e57720cfcc1 (patch) | |
tree | 0ea288309c7f825bc9328a9613d509df4824393f | |
parent | 7a74fae56a800e10fd34cd1e172b040e2a41f61d (diff) | |
parent | b901236261dc717dc08ed10f63e2d5cd3f3031f8 (diff) |
Merge branch 'barthalion/master'
-rw-r--r-- | image.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -278,7 +278,11 @@ bool img_load_gif(img_t *img, const fileinfo_t *file) } } while (rec != TERMINATE_RECORD_TYPE); +#if defined(GIFLIB_MAJOR) && GIFLIB_MAJOR >= 5 && GIFLIB_MINOR >= 1 + DGifCloseFile(gif, NULL); +#else DGifCloseFile(gif); +#endif if (err && !file->loaded) warn("corrupted gif file: %s", file->name); |