robot_time/include/robot/macros.h

24 lines
666 B
C

/*********************************************************************
* Minimal macros to decouple from ROS build system.
*********************************************************************/
#ifndef ROBOT_MINIMAL_MACROS_H
#define ROBOT_MINIMAL_MACROS_H
#if defined(_WIN32) && !defined(ROSTIME_STATIC)
#define ROBOT_HELPER_EXPORT __declspec(dllexport)
#define ROBOT_HELPER_IMPORT __declspec(dllimport)
#else
#define ROBOT_HELPER_EXPORT
#define ROBOT_HELPER_IMPORT
#endif
#if defined(_MSC_VER)
#define ROBOT_FORCE_INLINE __forceinline
#else
#define ROBOT_FORCE_INLINE inline __attribute__((always_inline))
#endif
#endif // ROBOT_MINIMAL_MACROS_H