Blob Blame History Raw
--- Source/WebCore/platform/image-decoders/jpeg/JPEGImageDecoder.cpp.orig	2010-11-07 12:09:27.209820788 +0100
+++ Source/WebCore/platform/image-decoders/jpeg/JPEGImageDecoder.cpp	2010-11-07 12:10:47.274135534 +0100
@@ -41,7 +41,7 @@
 #include "JPEGImageDecoder.h"
 #include <stdio.h>  // Needed by jpeglib.h for FILE.
 
-#if OS(WINCE) || PLATFORM(BREWMP_SIMULATOR)
+#if OS(WINCE) || PLATFORM(BREWMP_SIMULATOR) || PLATFORM(GTK)
 // Remove warning: 'FAR' macro redefinition
 #undef FAR
 
@@ -74,7 +74,7 @@
 };
 
 void init_source(j_decompress_ptr jd);
-boolean fill_input_buffer(j_decompress_ptr jd);
+jpeg_boolean fill_input_buffer(j_decompress_ptr jd);
 void skip_input_data(j_decompress_ptr jd, long num_bytes);
 void term_source(j_decompress_ptr jd);
 void error_exit(j_common_ptr cinfo);
@@ -358,7 +358,7 @@
     src->decoder->skipBytes(num_bytes);
 }
 
-boolean fill_input_buffer(j_decompress_ptr jd)
+jpeg_boolean fill_input_buffer(j_decompress_ptr jd)
 {
     // Our decode step always sets things up properly, so if this method is ever
     // called, then we have hit the end of the buffer.  A return value of false