From 36ae5236e626d7e8a8c7dc689e88b967c4e48aa7 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 2 Jan 2018 13:41:25 +0100 Subject: Bug 698836: Fix build with FZ_ENABLE_JPX=0. --- source/fitz/load-jpx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/fitz/load-jpx.c b/source/fitz/load-jpx.c index 65699bab..178be392 100644 --- a/source/fitz/load-jpx.c +++ b/source/fitz/load-jpx.c @@ -935,13 +935,13 @@ fz_load_jpx_info(fz_context *ctx, const unsigned char *data, size_t size, int *w #else /* FZ_ENABLE_JPX */ fz_pixmap * -fz_load_jpx(fz_context *ctx, unsigned char *data, size_t size, fz_colorspace *defcs) +fz_load_jpx(fz_context *ctx, const unsigned char *data, size_t size, fz_colorspace *defcs) { fz_throw(ctx, FZ_ERROR_GENERIC, "JPX support disabled"); } void -fz_load_jpx_info(fz_context *ctx, unsigned char *data, size_t size, int *wp, int *hp, int *xresp, int *yresp, fz_colorspace **cspacep) +fz_load_jpx_info(fz_context *ctx, const unsigned char *data, size_t size, int *wp, int *hp, int *xresp, int *yresp, fz_colorspace **cspacep) { fz_throw(ctx, FZ_ERROR_GENERIC, "JPX support disabled"); } -- cgit v1.2.3