ardupilot/libraries/AP_Common/missing/cmath

32 lines
718 B
Plaintext
Raw Normal View History

2016-03-30 14:42:27 -03:00
#pragma once
#include_next <cmath>
#ifdef __CYGWIN__
// hack to get SITL on windows working
#ifndef HAVE_CMATH_ISFINITE
#define HAVE_CMATH_ISFINITE
#define NEED_CMATH_ISFINITE_STD_NAMESPACE
#endif
#ifndef HAVE_CMATH_ISINF
#define HAVE_CMATH_ISINF
#define NEED_CMATH_ISINF_STD_NAMESPACE
#endif
#ifndef HAVE_CMATH_ISNAN
#define HAVE_CMATH_ISNAN
#define NEED_CMATH_ISNAN_STD_NAMESPACE
#endif
#endif // __CYGWIN__
2016-03-30 14:42:27 -03:00
#if defined(HAVE_CMATH_ISFINITE) && defined(NEED_CMATH_ISFINITE_STD_NAMESPACE)
using std::isfinite;
#endif
#if defined(HAVE_CMATH_ISINF) && defined(NEED_CMATH_ISINF_STD_NAMESPACE)
using std::isinf;
#endif
#if defined(HAVE_CMATH_ISNAN) && defined(NEED_CMATH_ISNAN_STD_NAMESPACE)
using std::isnan;
#endif