summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2016-02-02 19:33:59 +0000
committerRobin Watts <robin.watts@artifex.com>2016-02-02 19:37:54 +0000
commitd9c24f4fea589ab65a6046769c0642206557e60d (patch)
treed654313750cc10ff5b99252034fbc8d912c40fde
parent6fbafbc4c9a4bfbe3a18c3458ec3c2e622500035 (diff)
downloadmupdf-d9c24f4fea589ab65a6046769c0642206557e60d.tar.xz
Fix Gproof DLL calling on windows.
Unadorned calling works on 64bit, but on 32bit we need to ensure that the gsapi functions are declared as __stdcall.
-rw-r--r--source/gprf/gprf-doc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/gprf/gprf-doc.c b/source/gprf/gprf-doc.c
index 98e273ee..b859856a 100644
--- a/source/gprf/gprf-doc.c
+++ b/source/gprf/gprf-doc.c
@@ -10,6 +10,11 @@
#include "mupdf/fitz.h"
#if defined(USE_GS_API) && !defined(__ANDROID__)
+#ifdef _MSC_VER
+#define GSDLLEXPORT
+#define GSDLLAPI __stdcall
+#define GSDLLCALL
+#endif
#include "iapi.h"
#endif