SeaBreeze
DllDecl.h
Go to the documentation of this file.
1 /***************************************************/
35 #ifndef SEABREEZE_DLL_DECL_H
36 #define SEABREEZE_DLL_DECL_H
37 
38 #ifdef _WINDOWS
39  #ifdef BUILD_DLL
40  #define DLL_DECL __declspec(dllexport)
41  #else
42  #define DLL_DECL __declspec(dllimport)
43  #endif
44 
45  // "STL member 'seabreeze::api::Foo::foo' needs to have dll-interface
46  // to be used by clients of class 'seabreeze::api::Foo'"
47  #pragma warning (disable: 4251)
48 
49  // "non dll-interface class 'seabreeze::Foo' used as base for dll-interface
50  // class 'seabreeze::api::Bar'"
51  #pragma warning (disable: 4275)
52 #else
53  #define DLL_DECL
54 #endif
55 
56 #endif