AP_HAL: Don't redefine allowing double math in SITL/Linux if already defined

This commit is contained in:
Michael du Breuil 2020-08-29 16:14:32 -07:00 committed by Andrew Tridgell
parent 56b743dfca
commit d905282c1e
1 changed files with 3 additions and 1 deletions

View File

@ -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)