]> Creatis software - gdcm.git/commitdiff
ENH: mimic the ijg approach to get win32 shared lib working...
authormalaterre <malaterre>
Sat, 4 Jun 2005 01:47:37 +0000 (01:47 +0000)
committermalaterre <malaterre>
Sat, 4 Jun 2005 01:47:37 +0000 (01:47 +0000)
src/gdcmjasper/src/libjasper/include/jasper/jas_config.h.in

index 3063cf6d4e79e7b27bc4521853f7d4c05146a8b9..d56502bea90b986e397f9d2c1fff8f9887a9b8fb 100644 (file)
@@ -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