From 5212a52da702b4039e46395a917933bdf6c36969 Mon Sep 17 00:00:00 2001 From: svandecappelle Date: Thu, 10 Jul 2014 10:45:45 +0200 Subject: [PATCH] Glib version test into giflib exists test Include test of glib version into the have gif lib test --- src/Image.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/Image.h b/src/Image.h index 51eeaef..805fb80 100644 --- a/src/Image.h +++ b/src/Image.h @@ -17,14 +17,16 @@ #ifdef HAVE_GIF #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) + #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 #endif + + class Image: public node::ObjectWrap { public: char *filename;