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;