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)) {