Krolyxon
Commit b1a24cb

Branches

Refs →

nsxivb1a24cb

Fixed build for giflib version >= 5.0; fixed issue #90

Author
Bert Münnich
Date
2013-04-21 13:55 +0200
Parent
593da23
Commit
b1a24cb018ac3a10b30ffd999e2e5b8a7da6d8ea

+5 −1

2 files changed

  1. M Makefile +1 −1
  2. M image.c +4 −0
M Makefile View
@@ -1,4 +1,4 @@
1−VERSION = git-20130414
1+VERSION = git-20130421
22
33 PREFIX = /usr/local
44 MANPREFIX = $(PREFIX)/share/man
M image.c View
@@ -125,7 +125,11 @@ bool img_load_gif(img_t *img, const fileinfo_t *file)
125125 img->multi.cnt = 0;
126126 img->multi.sel = 0;
127127
128+#if defined(GIFLIB_MAJOR) && GIFLIB_MAJOR >= 5
129+ gif = DGifOpenFileName(file->path, NULL);
130+#else
128131 gif = DGifOpenFileName(file->path);
132+#endif
129133 if (gif == NULL) {
130134 warn("could not open gif file: %s", file->name);
131135 return false;