|
|
@ -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; |
|
|
|