Code::Blocks  SVN r11506
settings.h
Go to the documentation of this file.
1 /*
2  * This file is part of the Code::Blocks IDE and licensed under the GNU Lesser General Public License, version 3
3  * http://www.gnu.org/licenses/lgpl-3.0.html
4  */
5 
6 #ifndef SETTINGS_H
7 #define SETTINGS_H
8 
9 /*
10 Exclude VC++, because it has silly constraints on importing/exporting classes
11 from DLLs. Instead, we build "sdk" as a static library
12 */
13 #if defined(__WXMSW__)
14  #ifndef DLLIMPORT
15  #if defined(EXPORT_LIB)
16  #define DLLIMPORT __declspec (dllexport)
17  #else
18  #define DLLIMPORT __declspec (dllimport)
19  #endif // EXPORT_LIB
20  #endif // DLLIMPORT
21  #ifndef EVTIMPORT
22  #if defined(EXPORT_EVENTS)
23  #define EVTIMPORT __declspec (dllexport)
24  #else
25  #define EVTIMPORT __declspec (dllimport)
26  #endif // EXPORT_EVENTS
27  #endif // EVTIMPORT
28 #else
29  #define DLLIMPORT
30  #define EVTIMPORT
31 #endif
32 
33 #endif // SETTINGS_H