summaryrefslogtreecommitdiff
path: root/image
diff options
context:
space:
mode:
authorRob Kendrick <rjek@netsurf-browser.org>2007-07-18 14:47:41 +0000
committerRob Kendrick <rjek@netsurf-browser.org>2007-07-18 14:47:41 +0000
commitb70141c17d943c8469e45bcfa794121533e58c6c (patch)
treed422b6151fc5e5b8766aa83e542df8fb72428e5e /image
parent306f5588f3e9d2fb4e8716537c1f21582a6563ef (diff)
downloadnetsurf-b70141c17d943c8469e45bcfa794121533e58c6c.tar.gz
netsurf-b70141c17d943c8469e45bcfa794121533e58c6c.tar.bz2
Wrap jpeg.c with #ifdef WITH_JPEG
svn path=/trunk/netsurf/; revision=3431
Diffstat (limited to 'image')
-rw-r--r--image/jpeg.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/image/jpeg.c b/image/jpeg.c
index 7114bd550..866da9132 100644
--- a/image/jpeg.c
+++ b/image/jpeg.c
@@ -17,9 +17,10 @@
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
+#include "utils/config.h"
+#ifdef WITH_JPEG
#define JPEG_INTERNAL_OPTIONS
#include "jpeglib.h"
-#include "utils/config.h"
#include "content/content.h"
#include "desktop/plotters.h"
#include "image/bitmap.h"
@@ -250,3 +251,5 @@ void nsjpeg_destroy(struct content *c)
bitmap_destroy(c->bitmap);
free(c->title);
}
+
+#endif /* WITH_JPEG */