From: malaterre Date: Sat, 4 Jun 2005 01:47:37 +0000 (+0000) Subject: ENH: mimic the ijg approach to get win32 shared lib working... X-Git-Tag: Version1.2.bp~621 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=db0bc2c4b31e5dd465f8a22c35c4cd045139e7e3;p=gdcm.git ENH: mimic the ijg approach to get win32 shared lib working... --- 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