first commit 1437_31102025
This commit is contained in:
23
include/robot/macros.h
Normal file
23
include/robot/macros.h
Normal file
@@ -0,0 +1,23 @@
|
||||
/*********************************************************************
|
||||
* 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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user