diff options
author | Bartłomiej Piotrowski <b@bpiotrowski.pl> | 2014-05-27 11:46:06 +0200 |
---|---|---|
committer | Bartłomiej Piotrowski <b@bpiotrowski.pl> | 2014-05-27 11:46:42 +0200 |
commit | b901236261dc717dc08ed10f63e2d5cd3f3031f8 (patch) | |
tree | e8121b4e4ca33bce009ec936a1b20ca5ef50a5db | |
parent | 4cbc7346ff3584631ce7a11cb0f2bd7ac18563d2 (diff) |
Fix build with giflib >= 5.1.0.
-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); |