Unverified Commit 02ada99e authored by Denis Štogl's avatar Denis Štogl
Browse files

code formating

parent c7c2b3f0
......@@ -34,21 +34,24 @@
#define ROS2_CONTROL_DEMO_COMMUNICATION_GAZEBO_IMPORT __declspec(dllimport)
#endif
#ifdef ROS2_CONTROL_DEMO_COMMUNICATION_GAZEBO_BUILDING_DLL
#define ROS2_CONTROL_DEMO_COMMUNICATION_GAZEBO_PUBLIC ROS2_CONTROL_DEMO_COMMUNICATION_GAZEBO_EXPORT
#define ROS2_CONTROL_DEMO_COMMUNICATION_GAZEBO_PUBLIC \
ROS2_CONTROL_DEMO_COMMUNICATION_GAZEBO_EXPORT
#else
#define ROS2_CONTROL_DEMO_COMMUNICATION_GAZEBO_PUBLIC ROS2_CONTROL_DEMO_COMMUNICATION_GAZEBO_IMPORT
#define ROS2_CONTROL_DEMO_COMMUNICATION_GAZEBO_PUBLIC \
ROS2_CONTROL_DEMO_COMMUNICATION_GAZEBO_IMPORT
#endif
#define ROS2_CONTROL_DEMO_COMMUNICATION_GAZEBO_PUBLIC_TYPE \
#define ROS2_CONTROL_DEMO_COMMUNICATION_GAZEBO_PUBLIC_TYPE \
ROS2_CONTROL_DEMO_COMMUNICATION_GAZEBO_PUBLIC
#define ROS2_CONTROL_DEMO_COMMUNICATION_GAZEBO_LOCAL
#else
#define ROS2_CONTROL_DEMO_COMMUNICATION_GAZEBO_EXPORT \
#define ROS2_CONTROL_DEMO_COMMUNICATION_GAZEBO_EXPORT \
__attribute__((visibility("default")))
#define ROS2_CONTROL_DEMO_COMMUNICATION_GAZEBO_IMPORT
#if __GNUC__ >= 4
#define ROS2_CONTROL_DEMO_COMMUNICATION_GAZEBO_PUBLIC \
#define ROS2_CONTROL_DEMO_COMMUNICATION_GAZEBO_PUBLIC \
__attribute__((visibility("default")))
#define ROS2_CONTROL_DEMO_COMMUNICATION_GAZEBO_LOCAL __attribute__((visibility("hidden")))
#define ROS2_CONTROL_DEMO_COMMUNICATION_GAZEBO_LOCAL \
__attribute__((visibility("hidden")))
#else
#define ROS2_CONTROL_DEMO_COMMUNICATION_GAZEBO_PUBLIC
#define ROS2_CONTROL_DEMO_COMMUNICATION_GAZEBO_LOCAL
......
......@@ -27,28 +27,33 @@
#if defined _WIN32 || defined __CYGWIN__
#ifdef __GNUC__
#define ROS2_CONTROL_DEMO_COMMUNICATION_HEADLESS_EXPORT __attribute__((dllexport))
#define ROS2_CONTROL_DEMO_COMMUNICATION_HEADLESS_IMPORT __attribute__((dllimport))
#define ROS2_CONTROL_DEMO_COMMUNICATION_HEADLESS_EXPORT \
__attribute__((dllexport))
#define ROS2_CONTROL_DEMO_COMMUNICATION_HEADLESS_IMPORT \
__attribute__((dllimport))
#else
#define ROS2_CONTROL_DEMO_COMMUNICATION_HEADLESS_EXPORT __declspec(dllexport)
#define ROS2_CONTROL_DEMO_COMMUNICATION_HEADLESS_IMPORT __declspec(dllimport)
#endif
#ifdef ROS2_CONTROL_DEMO_COMMUNICATION_HEADLESS_BUILDING_DLL
#define ROS2_CONTROL_DEMO_COMMUNICATION_HEADLESS_PUBLIC ROS2_CONTROL_DEMO_COMMUNICATION_HEADLESS_EXPORT
#define ROS2_CONTROL_DEMO_COMMUNICATION_HEADLESS_PUBLIC \
ROS2_CONTROL_DEMO_COMMUNICATION_HEADLESS_EXPORT
#else
#define ROS2_CONTROL_DEMO_COMMUNICATION_HEADLESS_PUBLIC ROS2_CONTROL_DEMO_COMMUNICATION_HEADLESS_IMPORT
#define ROS2_CONTROL_DEMO_COMMUNICATION_HEADLESS_PUBLIC \
ROS2_CONTROL_DEMO_COMMUNICATION_HEADLESS_IMPORT
#endif
#define ROS2_CONTROL_DEMO_COMMUNICATION_HEADLESS_PUBLIC_TYPE \
#define ROS2_CONTROL_DEMO_COMMUNICATION_HEADLESS_PUBLIC_TYPE \
ROS2_CONTROL_DEMO_COMMUNICATION_HEADLESS_PUBLIC
#define ROS2_CONTROL_DEMO_COMMUNICATION_HEADLESS_LOCAL
#else
#define ROS2_CONTROL_DEMO_COMMUNICATION_HEADLESS_EXPORT \
#define ROS2_CONTROL_DEMO_COMMUNICATION_HEADLESS_EXPORT \
__attribute__((visibility("default")))
#define ROS2_CONTROL_DEMO_COMMUNICATION_HEADLESS_IMPORT
#if __GNUC__ >= 4
#define ROS2_CONTROL_DEMO_COMMUNICATION_HEADLESS_PUBLIC \
#define ROS2_CONTROL_DEMO_COMMUNICATION_HEADLESS_PUBLIC \
__attribute__((visibility("default")))
#define ROS2_CONTROL_DEMO_COMMUNICATION_HEADLESS_LOCAL __attribute__((visibility("hidden")))
#define ROS2_CONTROL_DEMO_COMMUNICATION_HEADLESS_LOCAL \
__attribute__((visibility("hidden")))
#else
#define ROS2_CONTROL_DEMO_COMMUNICATION_HEADLESS_PUBLIC
#define ROS2_CONTROL_DEMO_COMMUNICATION_HEADLESS_LOCAL
......
......@@ -19,8 +19,8 @@
* library cannot have, but the consuming code must have inorder to link.
*/
#ifndef ROS2_CONTROL_DEMO_HEADLESS__VISIBILITY_CONTROL_H_
#define ROS2_CONTROL_DEMO_HEADLESS__VISIBILITY_CONTROL_H_
#ifndef ROS2_CONTROL_DEMO_HARDWARE__VISIBILITY_CONTROL_H_
#define ROS2_CONTROL_DEMO_HARDWARE__VISIBILITY_CONTROL_H_
// This logic was borrowed (then namespaced) from the examples on the gcc wiki:
// https://gcc.gnu.org/wiki/Visibility
......@@ -38,16 +38,13 @@
#else
#define ROS2_CONTROL_DEMO_HARDWARE_PUBLIC ROS2_CONTROL_DEMO_HARDWARE_IMPORT
#endif
#define ROS2_CONTROL_DEMO_HARDWARE_PUBLIC_TYPE \
ROS2_CONTROL_DEMO_HARDWARE_PUBLIC
#define ROS2_CONTROL_DEMO_HARDWARE_PUBLIC_TYPE ROS2_CONTROL_DEMO_HARDWARE_PUBLIC
#define ROS2_CONTROL_DEMO_HARDWARE_LOCAL
#else
#define ROS2_CONTROL_DEMO_HARDWARE_EXPORT \
__attribute__((visibility("default")))
#define ROS2_CONTROL_DEMO_HARDWARE_EXPORT __attribute__((visibility("default")))
#define ROS2_CONTROL_DEMO_HARDWARE_IMPORT
#if __GNUC__ >= 4
#define ROS2_CONTROL_DEMO_HARDWARE_PUBLIC \
__attribute__((visibility("default")))
#define ROS2_CONTROL_DEMO_HARDWARE_PUBLIC __attribute__((visibility("default")))
#define ROS2_CONTROL_DEMO_HARDWARE_LOCAL __attribute__((visibility("hidden")))
#else
#define ROS2_CONTROL_DEMO_HARDWARE_PUBLIC
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment