From f6f97dfe0e84463cf6873096398f4bb725045566 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Wed, 17 Sep 2003 20:22:12 +0000 Subject: 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 --- src/Fl_JPEG_Image.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') 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 $". // -- cgit v1.2.3