diff --git a/src/Image.cc b/src/Image.cc index 223f5d8..aa34b4e 100644 --- a/src/Image.cc +++ b/src/Image.cc @@ -19,6 +19,12 @@ typedef struct { } gif_data_t; #endif +#if GIFLIB_MAJOR > 5 || GIFLIB_MAJOR == 5 && GIFLIB_MINOR >= 1 + #define GIF_CLOSE_FILE(gif) DGifCloseFile(gif, NULL) +#else + #define GIF_CLOSE_FILE(gif) DGifCloseFile(gif) +#endif + /* * Read closure used by loadFromBuffer. */