Choreonoid  1.5
Body/exportdecl.h
Go to the documentation of this file.
1 #ifndef CNOID_BODY_EXPORTDECL_H_INCLUDED
2 # define CNOID_BODY_EXPORTDECL_H_INCLUDED
3 # if defined _WIN32 || defined __CYGWIN__
4 # define CNOID_BODY_DLLIMPORT __declspec(dllimport)
5 # define CNOID_BODY_DLLEXPORT __declspec(dllexport)
6 # define CNOID_BODY_DLLLOCAL
7 # else
8 # if __GNUC__ >= 4
9 # define CNOID_BODY_DLLIMPORT __attribute__ ((visibility("default")))
10 # define CNOID_BODY_DLLEXPORT __attribute__ ((visibility("default")))
11 # define CNOID_BODY_DLLLOCAL __attribute__ ((visibility("hidden")))
12 # else
13 # define CNOID_BODY_DLLIMPORT
14 # define CNOID_BODY_DLLEXPORT
15 # define CNOID_BODY_DLLLOCAL
16 # endif
17 # endif
18 
19 # ifdef CNOID_BODY_STATIC
20 # define CNOID_BODY_DLLAPI
21 # define CNOID_BODY_LOCAL
22 # else
23 # ifdef CnoidBody_EXPORTS
24 # define CNOID_BODY_DLLAPI CNOID_BODY_DLLEXPORT
25 # else
26 # define CNOID_BODY_DLLAPI CNOID_BODY_DLLIMPORT
27 # endif
28 # define CNOID_BODY_LOCAL CNOID_BODY_DLLLOCAL
29 # endif
30 
31 #endif
32 
33 #ifdef CNOID_EXPORT
34 # undef CNOID_EXPORT
35 #endif
36 #define CNOID_EXPORT CNOID_BODY_DLLAPI