From a2297aa950c6adf499fa8f225e9702e4b342c34c Mon Sep 17 00:00:00 2001 From: Mark Charlebois Date: Wed, 17 Jun 2015 13:49:34 -0700 Subject: [PATCH] px4_log: Fixed ROS build Signed-off-by: Mark Charlebois --- src/platforms/px4_log.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/platforms/px4_log.h b/src/platforms/px4_log.h index d18026b07e..91107b5490 100644 --- a/src/platforms/px4_log.h +++ b/src/platforms/px4_log.h @@ -44,6 +44,16 @@ #include #include +#if defined(__PX4_ROS) + +#define PX4_PANIC(...) ROS_WARN(__VA_ARGS__) +#define PX4_ERR(...) ROS_WARN(__VA_ARGS__) +#define PX4_WARN(...) ROS_WARN(__VA_ARGS__) +#define PX4_INFO(...) ROS_WARN(__VA_ARGS__) +#define PX4_DEBUG(...) + +#else + __BEGIN_DECLS __EXPORT extern uint64_t hrt_absolute_time(void); @@ -164,3 +174,4 @@ __EXPORT extern unsigned int __px4_log_level_current; #endif __END_DECLS +#endif