diff --git a/src/platforms/px4_defines.h b/src/platforms/px4_defines.h index 711e1cc82e..bde247ee9e 100644 --- a/src/platforms/px4_defines.h +++ b/src/platforms/px4_defines.h @@ -41,6 +41,10 @@ #include +#if defined(__PX4_NUTTX) && !defined(CONFIG_ARCH_MATH_H) +#error CONFIG_ARCH_MATH_H is required to use math definitions and functions +#endif + /**************************************************************************** * Defines for all platforms. ****************************************************************************/