summaryrefslogtreecommitdiff
path: root/image
diff options
context:
space:
mode:
authorRob Kendrick <rjek@netsurf-browser.org>2008-03-10 14:29:43 +0000
committerRob Kendrick <rjek@netsurf-browser.org>2008-03-10 14:29:43 +0000
commitb91ad2b1ffdb2b52bcb23a81fb272ab5d4e9877b (patch)
tree0697e2b4830d7728c607e7fe9f52a65622aeeaac /image
parentd4e57583a0fb4109d4419d9cb83808f01847dccb (diff)
downloadnetsurf-b91ad2b1ffdb2b52bcb23a81fb272ab5d4e9877b.tar.gz
netsurf-b91ad2b1ffdb2b52bcb23a81fb272ab5d4e9877b.tar.bz2
Wrap jpeg library check in #ifdef riscos, as we don't care on non-RISC OS. Silences warning.
svn path=/trunk/netsurf/; revision=3921
Diffstat (limited to 'image')
-rw-r--r--image/jpeg.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/image/jpeg.c b/image/jpeg.c
index 57c70213e..d4f5f537d 100644
--- a/image/jpeg.c
+++ b/image/jpeg.c
@@ -40,13 +40,14 @@
#include "utils/messages.h"
#include "utils/utils.h"
-
+#ifdef riscos
/* We prefer the library to be configured with these options to save
* copying data during decoding. */
#if RGB_RED != 0 || RGB_GREEN != 1 || RGB_BLUE != 2 || RGB_PIXELSIZE != 4
#warning JPEG library not optimally configured. Decoding will be slower.
#endif
-
+/* but we don't care if we're not on RISC OS */
+#endif
static char nsjpeg_error_buffer[JMSG_LENGTH_MAX];