Browse Source

Glib version test into giflib exists test

Include test of glib version into the have gif lib test
v1.x
svandecappelle 11 years ago
parent
commit
5212a52da7
  1. 12
      src/Image.h

12
src/Image.h

@ -17,14 +17,16 @@
#ifdef HAVE_GIF
#include <gif_lib.h>
#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;

Loading…
Cancel
Save