summaryrefslogtreecommitdiffstats
path: root/image.c
diff options
context:
space:
mode:
Diffstat (limited to 'image.c')
-rw-r--r--image.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/image.c b/image.c
index 7e3329a..3230880 100644
--- a/image.c
+++ b/image.c
@@ -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;