From 9d52cfa9211743da2cdb2c1a8c9b82cea5aff2ab Mon Sep 17 00:00:00 2001 From: Felix Ruess Date: Thu, 8 Aug 2013 00:22:13 +0200 Subject: [PATCH] [nps] only declare isnan on osx --- sw/simulator/nps/nps_fdm_jsbsim.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sw/simulator/nps/nps_fdm_jsbsim.c b/sw/simulator/nps/nps_fdm_jsbsim.c index 4fccf4e4ea..c33307c82d 100644 --- a/sw/simulator/nps/nps_fdm_jsbsim.c +++ b/sw/simulator/nps/nps_fdm_jsbsim.c @@ -483,9 +483,11 @@ void lla_from_jsbsim_geodetic(LlaCoor_d* fdm_lla, FGPropagate* propagate) { } -/* Why isn't this there when we include math.h? */ +#ifdef __APPLE__ +/* Why isn't this there when we include math.h (on osx with clang)? */ /// Check if a double is NaN. static int isnan(double f) { return (f != f); } +#endif /** * Checks NpsFdm struct for NaNs.