Browse Source

Fixed; include jpeglib only when HAVE_JPEG

v1.x
Tj Holowaychuk 14 years ago
parent
commit
c0cf56920e
  1. 5
      src/Image.cc
  2. 2
      src/Image.h

5
src/Image.cc

@ -9,9 +9,12 @@
#include "Image.h" #include "Image.h"
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <jpeglib.h>
#include <errno.h> #include <errno.h>
#ifdef HAVE_JPEG
#include <jpeglib.h>
#endif
Persistent<FunctionTemplate> Image::constructor; Persistent<FunctionTemplate> Image::constructor;
/* /*

2
src/Image.h

@ -61,4 +61,4 @@ class Image: public node::ObjectWrap {
~Image(); ~Image();
}; };
#endif #endif

Loading…
Cancel
Save