Wrap jpeg library check in #ifdef riscos, as we don't care on non-RISC OS. Silences warning.

svn path=/trunk/netsurf/; revision=3921
This commit is contained in:
Rob Kendrick 2008-03-10 14:29:43 +00:00
parent d4e57583a0
commit b91ad2b1ff
1 changed files with 3 additions and 2 deletions

View File

@ -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];