Krolyxon
Commit 0f7b26d

Branches

Refs →

nsxiv0f7b26d

Merge branch 'barthalion/master'

Author
Bert Münnich
Date
2014-05-31 11:04 +0200
Parents
7a74fae b901236
Commit
0f7b26d33d29b9654ccf3c80a8bd5e57720cfcc1

+4 −0

1 file changed

  1. M image.c +4 −0
M image.c View
@@ -278,7 +278,11 @@ bool img_load_gif(img_t *img, const fileinfo_t *file)
278278 }
279279 } while (rec != TERMINATE_RECORD_TYPE);
280280
281+#if defined(GIFLIB_MAJOR) && GIFLIB_MAJOR >= 5 && GIFLIB_MINOR >= 1
282+ DGifCloseFile(gif, NULL);
283+#else
281284 DGifCloseFile(gif);
285+#endif
282286
283287 if (err && !file->loaded)
284288 warn("corrupted gif file: %s", file->name);