From d905282c1e517ce5318b9d842df2750f51d715ba Mon Sep 17 00:00:00 2001 From: Michael du Breuil Date: Sat, 29 Aug 2020 16:14:32 -0700 Subject: [PATCH] AP_HAL: Don't redefine allowing double math in SITL/Linux if already defined --- libraries/AP_HAL/AP_HAL_Macros.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libraries/AP_HAL/AP_HAL_Macros.h b/libraries/AP_HAL/AP_HAL_Macros.h index e2bc758722..e16d26714d 100644 --- a/libraries/AP_HAL/AP_HAL_Macros.h +++ b/libraries/AP_HAL/AP_HAL_Macros.h @@ -10,7 +10,9 @@ /* allow double maths on Linux and SITL to avoid problems with system headers */ -#define ALLOW_DOUBLE_MATH_FUNCTIONS + #if !defined(ALLOW_DOUBLE_MATH_FUNCTIONS) + #define ALLOW_DOUBLE_MATH_FUNCTIONS + #endif #endif // we need to include math.h here for newer compilers (eg. g++ 7.3.1 for stm32)