|
@ -51,9 +51,16 @@ init (Handle<Object> target) { |
|
|
} |
|
|
} |
|
|
target->Set(String::New("jpegVersion"), String::New(jpeg_version)); |
|
|
target->Set(String::New("jpegVersion"), String::New(jpeg_version)); |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
#ifdef HAVE_GIF |
|
|
#ifdef HAVE_GIF |
|
|
|
|
|
#ifndef GIF_LIB_VERSION |
|
|
|
|
|
char gif_version[10]; |
|
|
|
|
|
snprintf(gif_version, 10, "%d.%d.%d", GIFLIB_MAJOR, GIFLIB_MINOR, GIFLIB_RELEASE); |
|
|
|
|
|
target->Set(String::New("gifVersion"), String::New(gif_version)); |
|
|
|
|
|
#else |
|
|
target->Set(String::New("gifVersion"), String::New(GIF_LIB_VERSION)); |
|
|
target->Set(String::New("gifVersion"), String::New(GIF_LIB_VERSION)); |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
#endif |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
NODE_MODULE(canvas,init); |
|
|
NODE_MODULE(canvas,init); |
|
|