From: robertl Date: Fri, 5 May 2006 14:32:48 +0000 (+0000) Subject: Make use of isnan optional since it's C99. X-Git-Tag: archive/raspbian/1.10.0+ds-2+rpi1~1^2~12^2~11^2~2883 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=f661d4995e22f0379d4e05d1bc8f115ad8733cb5;p=gpsbabel.git Make use of isnan optional since it's C99. --- diff --git a/gpsbabel/grtcirc.c b/gpsbabel/grtcirc.c index 752e3f229..2bb40b0b2 100644 --- a/gpsbabel/grtcirc.c +++ b/gpsbabel/grtcirc.c @@ -68,7 +68,12 @@ double gcdist( double lat1, double lon1, double lat2, double lon2 ) { res = acos(res); - if ((isnan(res)) || (errno == EDOM)) { /* this should never happen: */ + if ( +#if defined isnan + /* This is a C99-ism. */ + (isnan(res)) || +#endif + (errno == EDOM)) { /* this should never happen: */ errno = 0; /* Math argument out of domain of function, */ return 0; /* or value returned is not a number */ }