From 48a3288753a3ec0bbd5e1f826ea413e1a6854fbb Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Mon, 18 Jan 2016 13:39:46 -0800 Subject: [PATCH] Fix QuRT build --- matrix/helper_functions.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/matrix/helper_functions.hpp b/matrix/helper_functions.hpp index 96d2b82751..d39b672d75 100644 --- a/matrix/helper_functions.hpp +++ b/matrix/helper_functions.hpp @@ -4,7 +4,7 @@ // grody hack - this should go once C++11 is supported // on all platforms. -#ifdef __PX4_NUTTX +#if defined (__PX4_NUTTX) || defined (__PX4_QURT) #include #else #include @@ -16,7 +16,7 @@ namespace matrix template Type wrap_pi(Type x) { -#ifdef __PX4_NUTTX +#if defined (__PX4_NUTTX) || defined (__PX4_QURT) if (!isfinite(x)) { #else if (!std::isfinite(x)) {