X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2Fjpeg%2Flibijg8%2Fjmorecfg.h;h=dd0f188d014c73db8d906625326f08d52cf0c676;hb=7a06c1759c4f03b6c8dc7780bfda9b508a2250c5;hp=a590351dd44b2ed65f720352d5c950e5a8e02faf;hpb=a26e6f06a76ec85504cf65288e7c47f2cd728641;p=gdcm.git diff --git a/src/jpeg/libijg8/jmorecfg.h b/src/jpeg/libijg8/jmorecfg.h index a590351d..dd0f188d 100644 --- a/src/jpeg/libijg8/jmorecfg.h +++ b/src/jpeg/libijg8/jmorecfg.h @@ -10,7 +10,6 @@ * optimizations. Most users will not need to touch this file. */ - /* * Define BITS_IN_JSAMPLE as either * 8 for 8-bit sample values (the usual setting) @@ -20,8 +19,7 @@ * We do not support run-time selection of data precision, sorry. */ -#define BITS_IN_JSAMPLE 12 /* use 8 or 12 */ - +#define BITS_IN_JSAMPLE 8 /* use 8 or 12 */ /* * Maximum number of components (color channels) allowed in JPEG image. @@ -185,9 +183,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.