diff options
author | Robin Watts <robin.watts@artifex.com> | 2016-02-02 19:33:59 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2016-02-02 19:37:54 +0000 |
commit | d9c24f4fea589ab65a6046769c0642206557e60d (patch) | |
tree | d654313750cc10ff5b99252034fbc8d912c40fde /source | |
parent | 6fbafbc4c9a4bfbe3a18c3458ec3c2e622500035 (diff) | |
download | mupdf-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.
Diffstat (limited to 'source')
-rw-r--r-- | source/gprf/gprf-doc.c | 5 |
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 |