2017-12-21 06:53:48 +00:00
|
|
|
Make it possible to build MuPDF with OpenJPEG 2.3, which is the latest
|
2016-09-09 20:08:02 +00:00
|
|
|
release series and contains many important bug fixes.
|
|
|
|
|
|
|
|
Patch adapted from Debian:
|
|
|
|
|
|
|
|
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=745246
|
|
|
|
|
|
|
|
And related to this upstream commit:
|
|
|
|
|
|
|
|
http://git.ghostscript.com/?p=mupdf.git;a=commit;h=f88bfe2e62dbadb96d4f52d7aa025f0a516078da
|
|
|
|
|
|
|
|
diff --git a/source/fitz/load-jpx.c b/source/fitz/load-jpx.c
|
2017-12-21 06:53:48 +00:00
|
|
|
index 65699ba..ea84778 100644
|
2016-09-09 20:08:02 +00:00
|
|
|
--- a/source/fitz/load-jpx.c
|
|
|
|
+++ b/source/fitz/load-jpx.c
|
2017-12-21 06:53:48 +00:00
|
|
|
@@ -445,11 +445,6 @@ fz_load_jpx_info(fz_context *ctx, const unsigned char *data, size_t size, int *w
|
2017-04-14 09:52:11 +00:00
|
|
|
|
|
|
|
#else /* HAVE_LURATECH */
|
2016-09-09 20:08:02 +00:00
|
|
|
|
|
|
|
-#define OPJ_STATIC
|
2017-04-14 09:52:11 +00:00
|
|
|
-#define OPJ_HAVE_INTTYPES_H
|
2017-12-21 06:53:48 +00:00
|
|
|
-#if !defined(_MSC_VER) || _MSC_VER >= 1600
|
2016-09-09 20:08:02 +00:00
|
|
|
-#define OPJ_HAVE_STDINT_H
|
|
|
|
-#endif
|
2017-04-14 09:52:11 +00:00
|
|
|
#define USE_JPIP
|
2016-09-09 20:08:02 +00:00
|
|
|
|
2017-04-14 09:52:11 +00:00
|
|
|
#include <openjpeg.h>
|