summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGES2
-rw-r--r--ide/Xcode3/config.h2
-rw-r--r--src/Fl_JPEG_Image.cxx3
3 files changed, 5 insertions, 2 deletions
diff --git a/CHANGES b/CHANGES
index f144daa1c..f3bb0b275 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,5 +1,7 @@
CHANGES IN FLTK 1.3.0
+ - Fixed compile errors when HAVE_LIBJPEG was not defined
+ (STR #2382)
- Fixed special handling for ISO back-tab keycode (STR #2369)
- Fixed wrong relative path (STR #2384)
- Fixed static allocation in Fl_Tabs (STR #2370)
diff --git a/ide/Xcode3/config.h b/ide/Xcode3/config.h
index 51b5fad4c..1858c3b35 100644
--- a/ide/Xcode3/config.h
+++ b/ide/Xcode3/config.h
@@ -49,4 +49,4 @@
/*
* End of "$Id: ide_xcode.cxx 7504 2010-04-14 20:17:44Z matt $".
- */ \ No newline at end of file
+ */
diff --git a/src/Fl_JPEG_Image.cxx b/src/Fl_JPEG_Image.cxx
index c4e450c64..054027b81 100644
--- a/src/Fl_JPEG_Image.cxx
+++ b/src/Fl_JPEG_Image.cxx
@@ -205,7 +205,7 @@ Fl_JPEG_Image::Fl_JPEG_Image(const char *filename) // I - File to load
// JOCTET * next_output_byte; /* => next byte to write in buffer */
// size_t free_in_buffer; /* # of byte spaces remaining in buffer */
-
+#ifdef HAVE_LIBJPEG
typedef struct {
struct jpeg_source_mgr pub;
const unsigned char *data, *s;
@@ -261,6 +261,7 @@ static void jpeg_mem_src(j_decompress_ptr cinfo, const unsigned char *data)
src->data = data;
src->s = data;
}
+#endif // HAVE_LIBJPEG
/**