1 
2 /**
3  * Under VISUALC we have single threaded static libraries, or
4  * mutli-threaded DLLs using the multithreaded runtime DLLs.
5  **/
6 #if defined(_VISUALC_)
7 #   if defined(_MT) && defined(_DLL) && !defined(_FPXDLL_) && !defined(_LIB)
8 #      define _FPXDLL_
9 #   endif
10 #   if defined(_FPXDLL_)
11 #      pragma warning( disable: 4273 )  /* Disable the stupid dll linkage warnings */
12 #      if !defined(_FPXLIB_)
13 #         define JPEGEXPORT extern __declspec(dllimport)
14 #         define FPXEXPORT extern __declspec(dllimport)
15 #         pragma message( "Compiling as dll import" )
16 #      else
17 #         define JPEGEXPORT extern __declspec(dllexport)
18 #         define FPXEXPORT extern __declspec(dllexport)
19 #         pragma message( "Compiling as dll export" )
20 #      endif
21 #   else
22 #      define FPXEXPORT extern
23 #      define JPEGEXPORT extern
24 #      pragma message( "Compiling as simple library" )
25 #   endif
26 #   pragma warning(disable : 4018)
27 #   pragma warning(disable : 4244)
28 #   pragma warning(disable : 4142)
29 #else
30 #   define JPEGEXPORT
31 #   define FPXEXPORT
32 #endif
33