nsxivb1a24cb
Fixed build for giflib version >= 5.0; fixed issue #90
+5 −1
2 files changed
| @@ -1,4 +1,4 @@ | |||
| 1 | − | VERSION = git-20130414 | |
| 1 | + | VERSION = git-20130421 | |
| 2 | 2 | ||
| 3 | 3 | PREFIX = /usr/local | |
| 4 | 4 | MANPREFIX = $(PREFIX)/share/man | |
| @@ -125,7 +125,11 @@ bool img_load_gif(img_t *img, const fileinfo_t *file) | |||
| 125 | 125 | img->multi.cnt = 0; | |
| 126 | 126 | img->multi.sel = 0; | |
| 127 | 127 | ||
| 128 | + | #if defined(GIFLIB_MAJOR) && GIFLIB_MAJOR >= 5 | |
| 129 | + | gif = DGifOpenFileName(file->path, NULL); | |
| 130 | + | #else | |
| 128 | 131 | gif = DGifOpenFileName(file->path); | |
| 132 | + | #endif | |
| 129 | 133 | if (gif == NULL) { | |
| 130 | 134 | warn("could not open gif file: %s", file->name); | |
| 131 | 135 | return false; | |