mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-07 09:36:19 +08:00
[nps] only declare isnan on osx
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user