From 9693da751ee070c11c01fd17d9ee89995d119bdf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Jos=C3=A9=20Pereira?= Date: Mon, 23 Oct 2017 22:25:39 -0200 Subject: [PATCH] AP_common: Add stdio.h when using SITL_printf MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Patrick José Pereira --- libraries/AP_Common/AP_Common.h | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/AP_Common/AP_Common.h b/libraries/AP_Common/AP_Common.h index 93cc16c8f3..c8dfb5e0af 100644 --- a/libraries/AP_Common/AP_Common.h +++ b/libraries/AP_Common/AP_Common.h @@ -173,6 +173,7 @@ bool is_bounded_int32(int32_t value, int32_t lower_bound, int32_t upper_bound); useful debugging macro for SITL */ #if CONFIG_HAL_BOARD == HAL_BOARD_SITL +#include #define SITL_printf(fmt, args ...) do { ::printf("%s(%u): " fmt, __FILE__, __LINE__, ##args); } while(0) #else #define SITL_printf(fmt, args ...)