* 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)
* 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.
/* 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.