X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2Fjpeg%2Flibijg12%2Fjmorecfg12.h;h=d10fb8f1d080c6b3414a0eaff1f942f28fe88301;hb=d3f4bf687510297b497282ad9f22ac6a03d25469;hp=a590351dd44b2ed65f720352d5c950e5a8e02faf;hpb=f4a2bc0de76ab784a57516c97e1ecd48a1040c1c;p=gdcm.git diff --git a/src/jpeg/libijg12/jmorecfg12.h b/src/jpeg/libijg12/jmorecfg12.h index a590351d..d10fb8f1 100644 --- a/src/jpeg/libijg12/jmorecfg12.h +++ b/src/jpeg/libijg12/jmorecfg12.h @@ -185,9 +185,17 @@ typedef unsigned int JDIMENSION; /* a function used only in its module: */ #define LOCAL(type) static type /* a function referenced thru EXTERNs: */ -#define GLOBAL(type) type +#ifdef WIN32 + #define GLOBAL(type) __declspec( dllexport ) type +#else + #define GLOBAL(type) type +#endif /* a reference to a GLOBAL function: */ -#define EXTERN(type) extern type +#ifdef WIN32 + #define EXTERN(type) extern __declspec( dllexport ) type +#else + #define EXTERN(type) extern type +#endif /* This macro is used to declare a "method", that is, a function pointer.