瀏覽代碼

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

master
Bert Münnich 11 年之前
父節點
當前提交
b1a24cb018
共有 2 個檔案被更改,包括 5 行新增1 行删除
  1. +1
    -1
      Makefile
  2. +4
    -0
      image.c

+ 1
- 1
Makefile 查看文件

@@ -1,4 +1,4 @@
VERSION = git-20130414
VERSION = git-20130421

PREFIX = /usr/local
MANPREFIX = $(PREFIX)/share/man


+ 4
- 0
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;


Loading…
取消
儲存