30 lines
470 B
Diff
30 lines
470 B
Diff
--- source/fitz/load-jpx.c.orig
|
|
+++ source/fitz/load-jpx.c
|
|
@@ -444,12 +444,17 @@
|
|
|
|
#else /* HAVE_LURATECH */
|
|
|
|
+
|
|
+#ifdef __cplusplus
|
|
+extern "C"
|
|
+{
|
|
#define OPJ_STATIC
|
|
#define OPJ_HAVE_INTTYPES_H
|
|
#if !defined(_WIN32) && !defined(_WIN64)
|
|
#define OPJ_HAVE_STDINT_H
|
|
#endif
|
|
#define USE_JPIP
|
|
+#endif
|
|
|
|
#include <openjpeg.h>
|
|
|
|
@@ -919,6 +924,9 @@
|
|
*yresp = state.yres;
|
|
}
|
|
|
|
+#ifdef __cplusplus
|
|
+}
|
|
+#endif
|
|
#endif /* HAVE_LURATECH */
|
|
|
|
#else /* FZ_ENABLE_JPX */
|