NimbRo ROS Soccer Package
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
macros.h
1 //It is a modified version of https://github.com/ros/ros_comm/
2 // Author: Hafez Farazi <farazi@ais.uni-bonn.de>
3 #ifndef NIMBRO_RELAY_MACROS_H_
4 #define NIMBRO_RELAY_MACROS_H_
5 
6 #include <ros/macros.h> // for the DECL's
7 
8 // Import/export for windows dll's and visibility for gcc shared libraries.
9 
10 #ifdef ROS_BUILD_SHARED_LIBS // ros is being built around shared libraries
11  #ifdef topic_tools_EXPORTS // we are building a shared lib/dll
12  #define NIMBRO_RELAY_DECL ROS_HELPER_EXPORT
13  #else // we are using shared lib/dll
14  #define NIMBRO_RELAY_DECL ROS_HELPER_IMPORT
15  #endif
16 #else // ros is being built around static libraries
17  #define NIMBRO_RELAY_DECL
18 #endif
19 
20 #endif /* NIMBRO_RELAY_MACROS_H_ */
21