It seems as if MacOS X does not have isnan(), or at least by default. From wading trough the headers (I see isnan in there, so I'm not sure why it is not being used), I made the following change to cloudfield.cxx. My guess is that this will only work on the Mac, since it appears as if ISNAN gets converted to max or min float.

Are any other Mac users seeing this?

RCS file: /var/cvs/SimGear-0.3/source/simgear/scene/sky/cloudfield.cxx,v
retrieving revision 1.7
diff -r1.7 cloudfield.cxx
<         if ( isnan(course) ) {
>         if ( (course < -360.0) || (course > 360.0) ) {

Flightgear-devel mailing list

Reply via email to