ecl.h: guard PX4 defines with ifdef

This commit is contained in:
Julian Oes
2016-06-02 16:29:55 +01:00
parent b8e2f79005
commit ab0ac05b47
+10
View File
@@ -38,6 +38,8 @@
*/
#pragma once
#if defined(__PX4_POSIX) || defined(__PX4_NUTTX)
#include <drivers/drv_hrt.h>
#include <px4_log.h>
@@ -46,3 +48,11 @@
#define ECL_INFO PX4_INFO
#define ECL_WARN PX4_WARN
#define ECL_ERR PX4_ERR
#else
#define ECL_INFO printf
#define ECL_WARN printf
#define ECL_ERR printf
#endif