summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2003-09-17 20:22:12 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2003-09-17 20:22:12 +0000
commitf6f97dfe0e84463cf6873096398f4bb725045566 (patch)
treefb1b4af37b087b526bb9794fd76c225e400d26f2 /src
parentdb0939a599520406e94fda2ffbec5ce1c3c40a04 (diff)
Don't compile JPEG error handler unless we have JPEG library...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3107 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
-rw-r--r--src/Fl_JPEG_Image.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Fl_JPEG_Image.cxx b/src/Fl_JPEG_Image.cxx
index 1752b1c6e..1b465eeeb 100644
--- a/src/Fl_JPEG_Image.cxx
+++ b/src/Fl_JPEG_Image.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: Fl_JPEG_Image.cxx,v 1.1.2.8 2003/09/15 23:52:37 easysw Exp $"
+// "$Id: Fl_JPEG_Image.cxx,v 1.1.2.9 2003/09/17 20:22:12 easysw Exp $"
//
// Fl_JPEG_Image routines.
//
@@ -59,11 +59,13 @@ extern "C"
// Error handler for JPEG files...
//
+#ifdef HAVE_LIBJPEG
static void
jpeg_error_handler(j_common_ptr)
{
return;
}
+#endif // HAVE_LIBJPEG
//
@@ -120,5 +122,5 @@ Fl_JPEG_Image::Fl_JPEG_Image(const char *jpeg) // I - File to load
}
//
-// End of "$Id: Fl_JPEG_Image.cxx,v 1.1.2.8 2003/09/15 23:52:37 easysw Exp $".
+// End of "$Id: Fl_JPEG_Image.cxx,v 1.1.2.9 2003/09/17 20:22:12 easysw Exp $".
//