Kaynağa Gözat

Fix build with giflib >= 5.1.0.

master
Bartłomiej Piotrowski 10 yıl önce
ebeveyn
işleme
b901236261
1 değiştirilmiş dosya ile 4 ekleme ve 0 silme
  1. +4
    -0
      image.c

+ 4
- 0
image.c Dosyayı Görüntüle

@@ -278,7 +278,11 @@ bool img_load_gif(img_t *img, const fileinfo_t *file)
}
} while (rec != TERMINATE_RECORD_TYPE);

#if defined(GIFLIB_MAJOR) && GIFLIB_MAJOR >= 5 && GIFLIB_MINOR >= 1
DGifCloseFile(gif, NULL);
#else
DGifCloseFile(gif);
#endif

if (err && !file->loaded)
warn("corrupted gif file: %s", file->name);


Yükleniyor…
İptal
Kaydet