6 #ifndef CMR_COMPILER_INCLUDED
7 #define CMR_COMPILER_INCLUDED
9 #if WIN32 && !defined(commore_STATIC_BUILD)
11 #ifdef commore_EXPORTS
12 #define CMREXD __declspec(dllexport)
14 #define CMREXD __declspec(dllimport)
16 #pragma comment(lib, "commored.lib")
18 #pragma comment(lib, "commore.lib")
28 #if _MSC_VER >= 1400 // this is Visual C++ 2005
29 #define stricmp _stricmp
31 #pragma warning(disable: 4345) // an object of POD type constructed with an initializer of the form () will be default-initialized
32 #pragma warning(disable: 4251) // needs to have dll-interface to be used by clients
33 #else // assume this is Visual C++ 6
34 #pragma warning(disable: 4100) // unreferenced formal parameter
35 #pragma warning(disable: 4710) // inline function not expanded
36 #pragma warning(disable: 4514) // unreferenced inline/local function has been removed
37 #pragma warning(disable: 4666) // 'declaration' : specialization of a function template differs
39 #pragma warning(disable: 4710) // function not inlined
40 #pragma warning(disable: 4239) // nonstandard extension used : 'default argument' : conversion
41 #pragma warning(disable: 4786) // astring too long - truncated to 255 characters
42 #pragma warning(disable: 4097) // used as synonym for class-name
43 #pragma warning(disable: 4273)
44 #pragma warning(disable: 4251) // needs to have dll-interface to be used by clients
48 #pragma warning(disable: 4702) // unreachable code caused by optimizations