diff --git a/src/Image.cc b/src/Image.cc index ba5400b..99b2683 100644 --- a/src/Image.cc +++ b/src/Image.cc @@ -16,6 +16,19 @@ #include #endif +#ifdef HAVE_GIF + #include + +struct GIFInputFuncData { + uint8_t *buf; + unsigned int length; + unsigned int cpos; +}; + +int readGIFFromMemory(GifFileType *gft, GifByteType *buf, int length); +int getGIFTransparentColor(GifFileType *gft, int framenum); +#endif + Persistent Image::constructor; /* diff --git a/src/Image.h b/src/Image.h index 06ecfb7..f6ce0c9 100644 --- a/src/Image.h +++ b/src/Image.h @@ -9,9 +9,6 @@ #define __NODE_IMAGE_H__ #include "Canvas.h" -#ifdef HAVE_GIF -#include -#endif class Image: public node::ObjectWrap { public: @@ -76,15 +73,4 @@ class Image: public node::ObjectWrap { ~Image(); }; -#ifdef HAVE_GIF - struct GIFInputFuncData { - uint8_t *buf; - unsigned int length; - unsigned int cpos; - }; - - int readGIFFromMemory(GifFileType *gft, GifByteType *buf, int length); - int getGIFTransparentColor(GifFileType *gft, int framenum); -#endif - #endif