]> Creatis software - gdcm.git/blobdiff - src/jpeg/libijg/jmorecfg.h
ENH: dos2unix CMakeLists.txt to allow diffing of directory with VTK + remove tabs
[gdcm.git] / src / jpeg / libijg / jmorecfg.h
index a590351dd44b2ed65f720352d5c950e5a8e02faf..dd0f188d014c73db8d906625326f08d52cf0c676 100644 (file)
@@ -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.