diff --git a/src/Image.h b/src/Image.h index 7e62640..51eeaef 100644 --- a/src/Image.h +++ b/src/Image.h @@ -19,6 +19,12 @@ #include #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 + class Image: public node::ObjectWrap { public: char *filename;