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
36 #define GZ_SENSORS_VISIBLE
39 #if defined _WIN32 || defined __CYGWIN__
42 #define GAZEBO_VISIBLE __attribute__ ((dllexport))
44 #define GAZEBO_VISIBLE __declspec(dllexport)
48 #define GAZEBO_VISIBLE __attribute__ ((dllimport))
50 #define GAZEBO_VISIBLE __declspec(dllimport)
56 #define GAZEBO_VISIBLE __attribute__ ((visibility ("default")))
57 #define GAZEBO_HIDDEN __attribute__ ((visibility ("hidden")))
59 #define GAZEBO_VISIBLE
64 #if defined _WIN32 || defined __CYGWIN__
65 #ifdef BUILDING_DLL_GZ_COMMON
67 #define GZ_COMMON_VISIBLE __attribute__ ((dllexport))
69 #define GZ_COMMON_VISIBLE __declspec(dllexport)
73 #define GZ_COMMON_VISIBLE __attribute__ ((dllimport))
75 #define GZ_COMMON_VISIBLE __declspec(dllimport)
78 #define GZ_COMMON_HIDDEN
81 #define GZ_COMMON_VISIBLE __attribute__ ((visibility ("default")))
82 #define GZ_COMMON_HIDDEN __attribute__ ((visibility ("hidden")))
84 #define GZ_COMMON_VISIBLE
85 #define GZ_COMMON_HIDDEN
89 #if defined _WIN32 || defined __CYGWIN__
90 #ifdef BUILDING_DLL_GZ_MATH
92 #define GZ_MATH_VISIBLE __attribute__ ((dllexport))
94 #define GZ_MATH_VISIBLE __declspec(dllexport)
98 #define GZ_MATH_VISIBLE __attribute__ ((dllimport))
100 #define GZ_MATH_VISIBLE __declspec(dllimport)
103 #define GZ_MATH_HIDDEN
106 #define GZ_MATH_VISIBLE __attribute__ ((visibility ("default")))
107 #define GZ_MATH_HIDDEN __attribute__ ((visibility ("hidden")))
109 #define GZ_MATH_VISIBLE
110 #define GZ_MATH_HIDDEN
114 #if defined _WIN32 || defined __CYGWIN__
115 #ifdef BUILDING_DLL_GZ_TRANSPORT
117 #define GZ_TRANSPORT_VISIBLE __attribute__ ((dllexport))
119 #define GZ_TRANSPORT_VISIBLE __declspec(dllexport)
123 #define GZ_TRANSPORT_VISIBLE __attribute__ ((dllimport))
125 #define GZ_TRANSPORT_VISIBLE __declspec(dllimport)
128 #define GZ_TRANSPORT_HIDDEN
131 #define GZ_TRANSPORT_VISIBLE __attribute__ ((visibility ("default")))
132 #define GZ_TRANSPORT_HIDDEN __attribute__ ((visibility ("hidden")))
134 #define GZ_TRANSPORT_VISIBLE
135 #define GZ_TRANSPORT_HIDDEN
139 #if defined _WIN32 || defined __CYGWIN__
140 #ifdef BUILDING_DLL_GZ_MSGS
142 #define GZ_MSGS_VISIBLE __attribute__ ((dllexport))
144 #define GZ_MSGS_VISIBLE __declspec(dllexport)
148 #define GZ_MSGS_VISIBLE __attribute__ ((dllimport))
150 #define GZ_MSGS_VISIBLE __declspec(dllimport)
153 #define GZ_MSGS_HIDDEN
156 #define GZ_MSGS_VISIBLE __attribute__ ((visibility ("default")))
157 #define GZ_MSGS_HIDDEN __attribute__ ((visibility ("hidden")))
159 #define GZ_MSGS_VISIBLE
160 #define GZ_MSGS_HIDDEN
164 #if defined _WIN32 || defined __CYGWIN__
165 #ifdef BUILDING_DLL_GZ_RENDERING
167 #define GZ_RENDERING_VISIBLE __attribute__ ((dllexport))
169 #define GZ_RENDERING_VISIBLE __declspec(dllexport)
173 #define GZ_RENDERING_VISIBLE __attribute__ ((dllimport))
175 #define GZ_RENDERING_VISIBLE __declspec(dllimport)
178 #define GZ_RENDERING_HIDDEN
181 #define GZ_RENDERING_VISIBLE __attribute__ ((visibility ("default")))
182 #define GZ_RENDERING_HIDDEN __attribute__ ((visibility ("hidden")))
184 #define GZ_RENDERING_VISIBLE
185 #define GZ_RENDERING_HIDDEN
189 #if defined _WIN32 || defined __CYGWIN__
190 #ifdef BUILDING_DLL_GZ_UTIL
192 #define GZ_UTIL_VISIBLE __attribute__ ((dllexport))
194 #define GZ_UTIL_VISIBLE __declspec(dllexport)
198 #define GZ_UTIL_VISIBLE __attribute__ ((dllimport))
200 #define GZ_UTIL_VISIBLE __declspec(dllimport)
203 #define GZ_UTIL_HIDDEN
206 #define GZ_UTIL_VISIBLE __attribute__ ((visibility ("default")))
207 #define GZ_UTIL_HIDDEN __attribute__ ((visibility ("hidden")))
209 #define GZ_UTIL_VISIBLE
210 #define GZ_UTIL_HIDDEN
214 #if defined _WIN32 || defined __CYGWIN__
215 #ifdef BUILDING_DLL_GZ_PHYSICS
217 #define GZ_PHYSICS_VISIBLE __attribute__ ((dllexport))
219 #define GZ_PHYSICS_VISIBLE __declspec(dllexport)
223 #define GZ_PHYSICS_VISIBLE __attribute__ ((dllimport))
225 #define GZ_PHYSICS_VISIBLE __declspec(dllimport)
228 #define GZ_PHYSICS_HIDDEN
231 #define GZ_PHYSICS_VISIBLE __attribute__ ((visibility ("default")))
232 #define GZ_PHYSICS_HIDDEN __attribute__ ((visibility ("hidden")))
234 #define GZ_PHYSICS_VISIBLE
235 #define GZ_PHYSICS_HIDDEN
239 #if defined _WIN32 || defined __CYGWIN__
240 #ifdef BUILDING_DLL_GZ_GUI
242 #define GZ_GUI_VISIBLE __attribute__ ((dllexport))
244 #define GZ_GUI_VISIBLE __declspec(dllexport)
248 #define GZ_GUI_VISIBLE __attribute__ ((dllimport))
250 #define GZ_GUI_VISIBLE __declspec(dllimport)
253 #define GZ_GUI_HIDDEN
256 #define GZ_GUI_VISIBLE __attribute__ ((visibility ("default")))
257 #define GZ_GUI_HIDDEN __attribute__ ((visibility ("hidden")))
259 #define GZ_GUI_VISIBLE
260 #define GZ_GUI_HIDDEN
264 #if defined _WIN32 || defined __CYGWIN__
265 #ifdef BUILDING_DLL_GZ_SENSORS
267 #define GZ_SENSORS_VISIBLE __attribute__ ((dllexport))
269 #define GZ_SENSORS_VISIBLE __declspec(dllexport)
273 #define GZ_SENSORS_VISIBLE __attribute__ ((dllimport))
275 #define GZ_SENSORS_VISIBLE __declspec(dllimport)
278 #define GZ_SENSORS_HIDDEN
281 #define GZ_SENSORS_VISIBLE __attribute__ ((visibility ("default")))
282 #define GZ_SENSORS_HIDDEN __attribute__ ((visibility ("hidden")))
284 #define GZ_SENSORS_VISIBLE
285 #define GZ_SENSORS_HIDDEN
293 #if defined _WIN32 || defined __CYGWIN__
295 #define GZ_PLUGIN_VISIBLE __attribute__ ((dllexport))
297 #define GZ_PLUGIN_VISIBLE __declspec(dllexport)
299 #define GZ_PLUGIN_HIDDEN
302 #define GZ_PLUGIN_VISIBLE __attribute__ ((visibility ("default")))
303 #define GZ_PLUGIN_HIDDEN __attribute__ ((visibility ("hidden")))
305 #define GZ_PLUGIN_VISIBLE
306 #define GZ_PLUGIN_HIDDEN
318 #if defined(__GNUC__)
319 #define GAZEBO_DEPRECATED(version) __attribute__((deprecated))
320 #define GAZEBO_FORCEINLINE __attribute__((always_inline))
321 #elif defined(_WIN32)
325 #define GAZEBO_DEPRECATED(version)
326 #define GAZEBO_FORCEINLINE __forceinline
328 #define GAZEBO_DEPRECATED(version) ()
329 #define GAZEBO_FORCEINLINE