AP_HAL: add sanity check people are not still defining ALLOW_DOUBLE_MATH_FUNCTIONS

This commit is contained in:
Peter Barker 2025-07-26 11:37:29 +10:00 committed by Andrew Tridgell
parent 3c013dfae3
commit 1b21d0f98f

View File

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