mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-05 07:28:29 -04:00
AP_HAL: fixed build on g++ 7.3 for stm32
the system maths headers don't like our maths defines, but are happy if we include math.h first
This commit is contained in:
parent
cf3bd2487b
commit
81711eb28e
@ -13,6 +13,9 @@
|
|||||||
#define 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)
|
||||||
|
#include <math.h>
|
||||||
|
|
||||||
#if !defined(ALLOW_DOUBLE_MATH_FUNCTIONS)
|
#if !defined(ALLOW_DOUBLE_MATH_FUNCTIONS)
|
||||||
/* give warnings if we use double precision maths functions without
|
/* give warnings if we use double precision maths functions without
|
||||||
specifying ALLOW_DOUBLE_TRIG_FUNCTIONS. Code should use the
|
specifying ALLOW_DOUBLE_TRIG_FUNCTIONS. Code should use the
|
||||||
|
Loading…
Reference in New Issue
Block a user