libsidplayfp  0.3.5
sidconfig.h
1 /* sidconfig.h (template) */
2 #ifndef _sidconfig_h_
3 #define _sidconfig_h_
4 
5 /* DLL building support on win32 hosts */
6 #ifndef SID_EXTERN
7 # ifdef DLL_EXPORT /* defined by libtool (if required) */
8 # define SID_EXTERN __declspec(dllexport)
9 # endif
10 # ifdef SID_DLL_IMPORT /* define if linking with this dll */
11 # define SID_EXTERN __declspec(dllimport)
12 # endif
13 # ifndef SID_EXTERN /* static linking or !_WIN32 */
14 # if defined(__GNUC__) && (__GNUC__ >= 4)
15 # define SID_EXTERN __attribute__ ((visibility("default")))
16 # else
17 # define SID_EXTERN
18 # endif
19 # endif
20 #endif
21 
22 /* Deprecated attributes */
23 #if defined(_MSCVER)
24 # define SID_DEPRECATED __declspec(deprecated)
25 #elif defined(__GNUC__)
26 # define SID_DEPRECATED __attribute__ ((deprecated))
27 #else
28 # define SID_DEPRECATED
29 #endif
30 
31 
32 /* Namespace support */
33 #define SIDPLAY2_NAMESPACE __sidplay2__
34 #ifdef SIDPLAY2_NAMESPACE
35 # define SIDPLAY2_NAMESPACE_START \
36  namespace SIDPLAY2_NAMESPACE \
37  {
38 # define SIDPLAY2_NAMESPACE_STOP \
39  }
40 #else
41 # define SIDPLAY2_NAMESPACE_START
42 # define SIDPLAY2_NAMESPACE_STOP
43 #endif
44 
45 #endif /* _sidconfig_h_ */