From 92117da3a83aed926f7fb44d18cf235dbaf60b53 Mon Sep 17 00:00:00 2001 From: Christian Rauch <Rauch.Christian@gmx.de> Date: Tue, 4 Dec 2018 02:22:19 +0000 Subject: [PATCH] check CONFIG_ARCH_MATH_H --- src/platforms/px4_defines.h | 4 ++++ 1 file changed, 4 insertions(+) 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 <px4_log.h> +#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. ****************************************************************************/ -- GitLab