2016-09-09 16:08:02 -04:00
|
|
|
Make it possible to build MuPDF with OpenJPEG 2.1, which is the latest
|
|
|
|
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
|
|
|
|
index 6b92e5c..72dea50 100644
|
|
|
|
--- a/source/fitz/load-jpx.c
|
|
|
|
+++ b/source/fitz/load-jpx.c
|
2017-04-14 05:52:11 -04:00
|
|
|
@@ -444,11 +444,6 @@
|
|
|
|
|
|
|
|
#else /* HAVE_LURATECH */
|
2016-09-09 16:08:02 -04:00
|
|
|
|
|
|
|
-#define OPJ_STATIC
|
2017-04-14 05:52:11 -04:00
|
|
|
-#define OPJ_HAVE_INTTYPES_H
|
|
|
|
-#if !defined(_WIN32) && !defined(_WIN64)
|
2016-09-09 16:08:02 -04:00
|
|
|
-#define OPJ_HAVE_STDINT_H
|
|
|
|
-#endif
|
2017-04-14 05:52:11 -04:00
|
|
|
#define USE_JPIP
|
2016-09-09 16:08:02 -04:00
|
|
|
|
2017-04-14 05:52:11 -04:00
|
|
|
#include <openjpeg.h>
|