mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-26 11:33:35 +08:00
Adapted so that this header can also be used in a ROS environment
This commit is contained in:
@@ -67,6 +67,7 @@
|
|||||||
|
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
||||||
|
#ifdef CONFIG_ARCH_ARM
|
||||||
__BEGIN_DECLS
|
__BEGIN_DECLS
|
||||||
|
|
||||||
__EXPORT const char *getprogname(void);
|
__EXPORT const char *getprogname(void);
|
||||||
@@ -86,4 +87,8 @@ __EXPORT void vwarnx(const char *fmt, va_list) __attribute__((format(printf, 1,
|
|||||||
|
|
||||||
__END_DECLS
|
__END_DECLS
|
||||||
|
|
||||||
|
#else //we are using ROS (should make a variable!!!)
|
||||||
|
#include <ros/ros.h>
|
||||||
|
#define warnx ROS_WARN
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user