diff options
author | Bert Münnich <ber.t@gmx.com> | 2013-04-21 13:55:08 +0200 |
---|---|---|
committer | Bert Münnich <ber.t@gmx.com> | 2013-04-21 13:55:08 +0200 |
commit | b1a24cb018ac3a10b30ffd999e2e5b8a7da6d8ea (patch) | |
tree | ce1fe4b7e7fe537bfd00ae5ebcd67fdf129c45b3 /image.c | |
parent | 593da23cf309aa4dd8b221b896f9d0dc77731ad7 (diff) |
Fixed build for giflib version >= 5.0; fixed issue #90
Diffstat (limited to 'image.c')
-rw-r--r-- | image.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -125,7 +125,11 @@ bool img_load_gif(img_t *img, const fileinfo_t *file) img->multi.cnt = 0; img->multi.sel = 0; +#if defined(GIFLIB_MAJOR) && GIFLIB_MAJOR >= 5 + gif = DGifOpenFileName(file->path, NULL); +#else gif = DGifOpenFileName(file->path); +#endif if (gif == NULL) { warn("could not open gif file: %s", file->name); return false; |