From 794633be9d50d201585c4ff02bba7c313d54472a Mon Sep 17 00:00:00 2001 From: NRK Date: Fri, 28 Feb 2025 01:17:06 +0000 Subject: [PATCH] Move openjpeg include under FZ_ENABLE_JPX otherwise it will try to include it even if jpx support was disabled. --- source/fitz/encode-jpx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/fitz/encode-jpx.c b/source/fitz/encode-jpx.c index 80111b88f3..1e3d3706e0 100644 --- a/source/fitz/encode-jpx.c +++ b/source/fitz/encode-jpx.c @@ -22,10 +22,10 @@ #include "mupdf/fitz.h" -#include - #if FZ_ENABLE_JPX +#include + static opj_image_t * image_from_pixmap(fz_context *ctx, fz_pixmap *pix) {