From b8984f3151664e4d6e2a0740deba9dbfdf8bc5b4 Mon Sep 17 00:00:00 2001 From: James Zern Date: Tue, 22 Jul 2014 17:48:24 -0700 Subject: [PATCH] gif2webp: fix compile with giflib 5.1.0 DGifCloseFile() added an error code output parameter http://giflib.sourceforge.net/gif_lib.html#compatibility fixes issue #209 original patch by grizzly dot nyo at gmail Change-Id: I5554de2bd70dbfd95fd356424ad5fb800ac94592 --- examples/gif2webp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/gif2webp.c b/examples/gif2webp.c index 47b0c5b7..71d526e4 100644 --- a/examples/gif2webp.c +++ b/examples/gif2webp.c @@ -690,7 +690,11 @@ int main(int argc, const char *argv[]) { DisplayGifError(gif, gif_error); } if (gif != NULL) { +#if LOCAL_GIF_PREREQ(5,1) + DGifCloseFile(gif, &gif_error); +#else DGifCloseFile(gif); +#endif } return !ok;