mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-25 02:43:34 +08:00
Fix QuRT build
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
// grody hack - this should go once C++11 is supported
|
// grody hack - this should go once C++11 is supported
|
||||||
// on all platforms.
|
// on all platforms.
|
||||||
#ifdef __PX4_NUTTX
|
#if defined (__PX4_NUTTX) || defined (__PX4_QURT)
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#else
|
#else
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
@@ -16,7 +16,7 @@ namespace matrix
|
|||||||
template<typename Type>
|
template<typename Type>
|
||||||
Type wrap_pi(Type x)
|
Type wrap_pi(Type x)
|
||||||
{
|
{
|
||||||
#ifdef __PX4_NUTTX
|
#if defined (__PX4_NUTTX) || defined (__PX4_QURT)
|
||||||
if (!isfinite(x)) {
|
if (!isfinite(x)) {
|
||||||
#else
|
#else
|
||||||
if (!std::isfinite(x)) {
|
if (!std::isfinite(x)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user