Hello Curt, could you please revert this change and remove the whole FreeBSD clause - it just makes life harder on the cuurrent FreeBSD RELEASE - or change it. See below.
"Curtis L. Olson" wrote: > Update of /var/cvs/SimGear-0.3/source/simgear/sound > In directory baron:/tmp/cvs-serv27687/sound > > Modified Files: > soundmgr_openal.cxx > Log Message: > I don't understand why FreeBSD doesn't see isnan() after including math.h > but it doesn't. Trying the apple approach to fixing isnan results in an > infinite loop (making me wonder what happens on OSX?) This is an alternative > approach to checking isnan() on freebsd ... > Index: soundmgr_openal.cxx > =================================================================== > RCS file: /var/cvs/SimGear-0.3/source/simgear/sound/soundmgr_openal.cxx,v > retrieving revision 1.7 > retrieving revision 1.8 > diff -C2 -r1.7 -r1.8 > *** soundmgr_openal.cxx 19 Nov 2004 21:44:17 -0000 1.7 > --- soundmgr_openal.cxx 21 Nov 2004 03:13:54 -0000 1.8 [...] > *************** > *** 47,50 **** > --- 47,54 ---- > #endif > > + #if defined (__FreeBSD__) > + inline int isnan(double r) { return !(r < 0 || r > 0); } > + #endif > + > #include STL_IOSTREAM An alternative to keep compatibility with older FreeBSD releases might be to place such a clause: #if defined (__FreeBSD__) extern "C" { #if __FreeBSD_version < 500000 inline int isnan(double r) { return !(r <= 0 || r >= 0); } #endif } #endif Thanks alot, Martin. -- Unix _IS_ user friendly - it's just selective about who its friends are ! -------------------------------------------------------------------------- _______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel 2f585eeea02e2c79d7b1d8c4963bae2d