From 7b47d54d6b55cef863fbca742b4e9d95f84f3e9e Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 17 May 2016 20:55:57 +1000 Subject: [PATCH] AP_Common: workaround for SITL on windows --- libraries/AP_Common/missing/cmath | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/libraries/AP_Common/missing/cmath b/libraries/AP_Common/missing/cmath index 2709fd5770..4d04c10402 100644 --- a/libraries/AP_Common/missing/cmath +++ b/libraries/AP_Common/missing/cmath @@ -2,6 +2,22 @@ #include_next +#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__ + #if defined(HAVE_CMATH_ISFINITE) && defined(NEED_CMATH_ISFINITE_STD_NAMESPACE) using std::isfinite; #endif