Go to the documentation of this file.
17 #ifndef _GAZEBO_VISIBLE_HH_
18 #define _GAZEBO_VISIBLE_HH_
26 #if defined BUILDING_STATIC_LIBS
27 #define GAZEBO_VISIBLE
28 #define GZ_COMMON_VISIBLE
29 #define GZ_MATH_VISIBLE
30 #define GZ_TRANSPORT_VISIBLE
31 #define GZ_MSGS_VISIBLE
32 #define GZ_RENDERING_VISIBLE
33 #define GZ_UTIL_VISIBLE
34 #define GZ_PHYSICS_VISIBLE
35 #define GZ_GUI_VISIBLE
38 #if defined _WIN32 || defined __CYGWIN__
41 #define GAZEBO_VISIBLE __attribute__ ((dllexport))
43 #define GAZEBO_VISIBLE __declspec(dllexport)
47 #define GAZEBO_VISIBLE __attribute__ ((dllimport))
49 #define GAZEBO_VISIBLE __declspec(dllimport)
55 #define GAZEBO_VISIBLE __attribute__ ((visibility ("default")))
56 #define GAZEBO_HIDDEN __attribute__ ((visibility ("hidden")))
58 #define GAZEBO_VISIBLE
63 #if defined _WIN32 || defined __CYGWIN__
64 #ifdef BUILDING_DLL_GZ_COMMON
66 #define GZ_COMMON_VISIBLE __attribute__ ((dllexport))
68 #define GZ_COMMON_VISIBLE __declspec(dllexport)
72 #define GZ_COMMON_VISIBLE __attribute__ ((dllimport))
74 #define GZ_COMMON_VISIBLE __declspec(dllimport)
77 #define GZ_COMMON_HIDDEN
80 #define GZ_COMMON_VISIBLE __attribute__ ((visibility ("default")))
81 #define GZ_COMMON_HIDDEN __attribute__ ((visibility ("hidden")))
83 #define GZ_COMMON_VISIBLE
84 #define GZ_COMMON_HIDDEN
88 #if defined _WIN32 || defined __CYGWIN__
89 #ifdef BUILDING_DLL_GZ_MATH
91 #define GZ_MATH_VISIBLE __attribute__ ((dllexport))
93 #define GZ_MATH_VISIBLE __declspec(dllexport)
97 #define GZ_MATH_VISIBLE __attribute__ ((dllimport))
99 #define GZ_MATH_VISIBLE __declspec(dllimport)
102 #define GZ_MATH_HIDDEN
105 #define GZ_MATH_VISIBLE __attribute__ ((visibility ("default")))
106 #define GZ_MATH_HIDDEN __attribute__ ((visibility ("hidden")))
108 #define GZ_MATH_VISIBLE
109 #define GZ_MATH_HIDDEN
113 #if defined _WIN32 || defined __CYGWIN__
114 #ifdef BUILDING_DLL_GZ_TRANSPORT
116 #define GZ_TRANSPORT_VISIBLE __attribute__ ((dllexport))
118 #define GZ_TRANSPORT_VISIBLE __declspec(dllexport)
122 #define GZ_TRANSPORT_VISIBLE __attribute__ ((dllimport))
124 #define GZ_TRANSPORT_VISIBLE __declspec(dllimport)
127 #define GZ_TRANSPORT_HIDDEN
130 #define GZ_TRANSPORT_VISIBLE __attribute__ ((visibility ("default")))
131 #define GZ_TRANSPORT_HIDDEN __attribute__ ((visibility ("hidden")))
133 #define GZ_TRANSPORT_VISIBLE
134 #define GZ_TRANSPORT_HIDDEN
138 #if defined _WIN32 || defined __CYGWIN__
139 #ifdef BUILDING_DLL_GZ_MSGS
141 #define GZ_MSGS_VISIBLE __attribute__ ((dllexport))
143 #define GZ_MSGS_VISIBLE __declspec(dllexport)
147 #define GZ_MSGS_VISIBLE __attribute__ ((dllimport))
149 #define GZ_MSGS_VISIBLE __declspec(dllimport)
152 #define GZ_MSGS_HIDDEN
155 #define GZ_MSGS_VISIBLE __attribute__ ((visibility ("default")))
156 #define GZ_MSGS_HIDDEN __attribute__ ((visibility ("hidden")))
158 #define GZ_MSGS_VISIBLE
159 #define GZ_MSGS_HIDDEN
163 #if defined _WIN32 || defined __CYGWIN__
164 #ifdef BUILDING_DLL_GZ_RENDERING
166 #define GZ_RENDERING_VISIBLE __attribute__ ((dllexport))
168 #define GZ_RENDERING_VISIBLE __declspec(dllexport)
172 #define GZ_RENDERING_VISIBLE __attribute__ ((dllimport))
174 #define GZ_RENDERING_VISIBLE __declspec(dllimport)
177 #define GZ_RENDERING_HIDDEN
180 #define GZ_RENDERING_VISIBLE __attribute__ ((visibility ("default")))
181 #define GZ_RENDERING_HIDDEN __attribute__ ((visibility ("hidden")))
183 #define GZ_RENDERING_VISIBLE
184 #define GZ_RENDERING_HIDDEN
188 #if defined _WIN32 || defined __CYGWIN__
189 #ifdef BUILDING_DLL_GZ_UTIL
191 #define GZ_UTIL_VISIBLE __attribute__ ((dllexport))
193 #define GZ_UTIL_VISIBLE __declspec(dllexport)
197 #define GZ_UTIL_VISIBLE __attribute__ ((dllimport))
199 #define GZ_UTIL_VISIBLE __declspec(dllimport)
202 #define GZ_UTIL_HIDDEN
205 #define GZ_UTIL_VISIBLE __attribute__ ((visibility ("default")))
206 #define GZ_UTIL_HIDDEN __attribute__ ((visibility ("hidden")))
208 #define GZ_UTIL_VISIBLE
209 #define GZ_UTIL_HIDDEN
213 #if defined _WIN32 || defined __CYGWIN__
214 #ifdef BUILDING_DLL_GZ_PHYSICS
216 #define GZ_PHYSICS_VISIBLE __attribute__ ((dllexport))
218 #define GZ_PHYSICS_VISIBLE __declspec(dllexport)
222 #define GZ_PHYSICS_VISIBLE __attribute__ ((dllimport))
224 #define GZ_PHYSICS_VISIBLE __declspec(dllimport)
227 #define GZ_PHYSICS_HIDDEN
230 #define GZ_PHYSICS_VISIBLE __attribute__ ((visibility ("default")))
231 #define GZ_PHYSICS_HIDDEN __attribute__ ((visibility ("hidden")))
233 #define GZ_PHYSICS_VISIBLE
234 #define GZ_PHYSICS_HIDDEN
238 #if defined _WIN32 || defined __CYGWIN__
239 #ifdef BUILDING_DLL_GZ_GUI
241 #define GZ_GUI_VISIBLE __attribute__ ((dllexport))
243 #define GZ_GUI_VISIBLE __declspec(dllexport)
247 #define GZ_GUI_VISIBLE __attribute__ ((dllimport))
249 #define GZ_GUI_VISIBLE __declspec(dllimport)
252 #define GZ_GUI_HIDDEN
255 #define GZ_GUI_VISIBLE __attribute__ ((visibility ("default")))
256 #define GZ_GUI_HIDDEN __attribute__ ((visibility ("hidden")))
258 #define GZ_GUI_VISIBLE
259 #define GZ_GUI_HIDDEN
267 #if defined _WIN32 || defined __CYGWIN__
269 #define GZ_PLUGIN_VISIBLE __attribute__ ((dllexport))
271 #define GZ_PLUGIN_VISIBLE __declspec(dllexport)
273 #define GZ_PLUGIN_HIDDEN
276 #define GZ_PLUGIN_VISIBLE __attribute__ ((visibility ("default")))
277 #define GZ_PLUGIN_HIDDEN __attribute__ ((visibility ("hidden")))
279 #define GZ_PLUGIN_VISIBLE
280 #define GZ_PLUGIN_HIDDEN
292 #if defined(__GNUC__)
293 #define GAZEBO_DEPRECATED(version) __attribute__((deprecated))
294 #define GAZEBO_FORCEINLINE __attribute__((always_inline))
295 #elif defined(_WIN32)
299 #define GAZEBO_DEPRECATED(version)
300 #define GAZEBO_FORCEINLINE __forceinline
302 #define GAZEBO_DEPRECATED(version) ()
303 #define GAZEBO_FORCEINLINE