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