[nps] only declare isnan on osx

This commit is contained in:
Felix Ruess
2013-08-08 00:22:13 +02:00
parent d1ceba79ea
commit 9d52cfa921
+3 -1
View File
@@ -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.