mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2025-12-11 02:29:09 -06:00
AP_HAL: add sanity check people are not still defining ALLOW_DOUBLE_MATH_FUNCTIONS
This commit is contained in:
parent
3c013dfae3
commit
1b21d0f98f
@ -6,6 +6,10 @@
|
||||
macros to allow code to build on multiple platforms more easily
|
||||
*/
|
||||
|
||||
#ifdef ALLOW_DOUBLE_MATH_FUNCTIONS
|
||||
#error ALLOW_DOUBLE_MATH_FUNCTIONS has been replaced with AP_MATH_ALLOW_DOUBLE_FUNCTIONS (which must be defined). So replace "define ALLOW_DOUBLE_MATH_FUNCTIONS" with "define AP_MATH_ALLOW_DOUBLE_FUNCTIONS 1"
|
||||
#endif // ALLOW_DOUBLE_MATH_FUNCTIONS
|
||||
|
||||
#ifndef AP_MATH_ALLOW_DOUBLE_FUNCTIONS
|
||||
/*
|
||||
allow double maths on Linux and SITL to avoid problems with system headers
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user