void-packages/srcpkgs/mupdf/patches/0001-mupdf-openjpeg.patch
Matthias von Faber a7a1c40d98 mupdf: fix build.
2017-08-28 15:00:37 +02:00

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 */