From db0bc2c4b31e5dd465f8a22c35c4cd045139e7e3 Mon Sep 17 00:00:00 2001 From: malaterre Date: Sat, 4 Jun 2005 01:47:37 +0000 Subject: [PATCH] ENH: mimic the ijg approach to get win32 shared lib working... --- .../src/libjasper/include/jasper/jas_config.h.in | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/gdcmjasper/src/libjasper/include/jasper/jas_config.h.in b/src/gdcmjasper/src/libjasper/include/jasper/jas_config.h.in index 3063cf6d..d56502be 100644 --- a/src/gdcmjasper/src/libjasper/include/jasper/jas_config.h.in +++ b/src/gdcmjasper/src/libjasper/include/jasper/jas_config.h.in @@ -217,6 +217,15 @@ typedef __int64 longlong; /* #define ssize_t int */ #endif // HAVE_SYS_TYPES_H + +/* a function referenced thru EXTERNs: */ +#if defined( _WIN32 ) && defined (JPEGDLL) +#define GLOBAL(type) __declspec(dllexport) type +#else +#define GLOBAL(type) type +#endif + +/* a reference to a GLOBAL function: */ #if defined(_WIN32) && !defined(JASPERSTATIC) #ifdef JASPERDLL #define EXTERN(type) __declspec(dllexport) type -- 2.46.1