summaryrefslogtreecommitdiff
path: root/source/fitz/load-jpeg.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2014-08-19 17:11:20 +0200
committerTor Andersson <tor.andersson@artifex.com>2014-08-19 17:11:20 +0200
commit44efa7e4a451793dd2357a65c92bc47719da1ad2 (patch)
tree434eab5fb20908b8044598b421ef6ad34b340c4a /source/fitz/load-jpeg.c
parent5462659976b618a43493a09a3e5cfe043816ae94 (diff)
downloadmupdf-44efa7e4a451793dd2357a65c92bc47719da1ad2.tar.xz
Only include jmemcust.h when building our own libjpeg.
Diffstat (limited to 'source/fitz/load-jpeg.c')
-rw-r--r--source/fitz/load-jpeg.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/fitz/load-jpeg.c b/source/fitz/load-jpeg.c
index 15e6e713..96c82ebd 100644
--- a/source/fitz/load-jpeg.c
+++ b/source/fitz/load-jpeg.c
@@ -1,8 +1,6 @@
#include "mupdf/fitz.h"
#include <jpeglib.h>
-typedef void * backing_store_ptr;
-#include "jmemcust.h"
#ifdef SHARE_JPEG
@@ -13,6 +11,9 @@ typedef void * backing_store_ptr;
#else /* SHARE_JPEG */
+typedef void * backing_store_ptr;
+#include "jmemcust.h"
+
#define JZ_CTX_FROM_CINFO(c) (fz_context *)(GET_CUST_MEM_DATA(c)->priv)
static void *