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
This commit is contained in:
James Zern 2014-07-22 17:48:24 -07:00
parent 222f9b1a9d
commit b8984f3151

View File

@ -690,7 +690,11 @@ int main(int argc, const char *argv[]) {
DisplayGifError(gif, gif_error); DisplayGifError(gif, gif_error);
} }
if (gif != NULL) { if (gif != NULL) {
#if LOCAL_GIF_PREREQ(5,1)
DGifCloseFile(gif, &gif_error);
#else
DGifCloseFile(gif); DGifCloseFile(gif);
#endif
} }
return !ok; return !ok;