From c0cf56920e907bc6f3a0ed1476406f282deca03f Mon Sep 17 00:00:00 2001 From: Tj Holowaychuk Date: Wed, 24 Nov 2010 13:07:21 -0800 Subject: [PATCH] Fixed; include jpeglib only when HAVE_JPEG --- src/Image.cc | 5 ++++- src/Image.h | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Image.cc b/src/Image.cc index 2f6563c..d420ab3 100644 --- a/src/Image.cc +++ b/src/Image.cc @@ -9,9 +9,12 @@ #include "Image.h" #include #include -#include #include +#ifdef HAVE_JPEG +#include +#endif + Persistent Image::constructor; /* diff --git a/src/Image.h b/src/Image.h index be57b55..5083f72 100644 --- a/src/Image.h +++ b/src/Image.h @@ -61,4 +61,4 @@ class Image: public node::ObjectWrap { ~Image(); }; -#endif \ No newline at end of file +#endif