summaryrefslogtreecommitdiff
path: root/print/mupdf/patches/patch-source_fitz_load-jpx.c
diff options
context:
space:
mode:
Diffstat (limited to 'print/mupdf/patches/patch-source_fitz_load-jpx.c')
-rw-r--r--print/mupdf/patches/patch-source_fitz_load-jpx.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/print/mupdf/patches/patch-source_fitz_load-jpx.c b/print/mupdf/patches/patch-source_fitz_load-jpx.c
index 13e03eba33a..886d8b66004 100644
--- a/print/mupdf/patches/patch-source_fitz_load-jpx.c
+++ b/print/mupdf/patches/patch-source_fitz_load-jpx.c
@@ -1,16 +1,16 @@
-$NetBSD: patch-source_fitz_load-jpx.c,v 1.4 2016/11/28 14:40:42 leot Exp $
+$NetBSD: patch-source_fitz_load-jpx.c,v 1.5 2017/04/12 13:03:08 leot Exp $
Restrict OPJ_STATIC to Windows (avoid linking errors due to hidden symbols)
---- source/fitz/load-jpx.c.orig 2016-11-08 19:06:14.000000000 +0000
+--- source/fitz/load-jpx.c.orig 2017-03-31 14:23:45.000000000 +0000
+++ source/fitz/load-jpx.c
-@@ -484,7 +484,9 @@ fz_load_jpx_info(fz_context *ctx, unsign
- /* Without the definition of OPJ_STATIC, compilation fails on windows
- * due to the use of __stdcall. We believe it is required on some
- * linux toolchains too. */
-+#ifdef _WIN32
+@@ -443,7 +443,9 @@ fz_load_jpx_info(fz_context *ctx, unsign
+
+ #else /* HAVE_LURATECH */
+
++#if defined(_WIN32) || defined(_WIN64)
#define OPJ_STATIC
+#endif
- #ifndef _MSC_VER
+ #define OPJ_HAVE_INTTYPES_H
+ #if !defined(_WIN32) && !defined(_WIN64)
#define OPJ_HAVE_STDINT_H
- #endif