1 /* Avoid problems due to multiple inclusion. */
2 #ifndef JPEGPLS_CONFIG_H
3 #define JPEGPLS_CONFIG_H
5 /* Define to 1 if you have the <unistd.h> header file. */
6 #cmakedefine HAVE_UNISTD_H
8 #cmakedefine JPEGLSSTATIC
10 /* a function referenced thru EXTERNs: */
11 #if defined( _WIN32 ) && defined (JPEGLSDLL)
12 #define GLOBAL(type) __declspec(dllexport) type
14 #define GLOBAL(type) type
17 /* a reference to a GLOBAL function: */
18 #if defined(_WIN32) && !defined(JPEGLSSTATIC)
20 #define EXTERN(type) __declspec(dllexport) type
22 #define EXTERN(type) __declspec(dllimport) type
25 #define EXTERN(type) extern type