Re: [Flightgear-devel] Question regarding pre-processor code in SIMGEAR/simgear/compiler.h

2009-10-31 Thread James Turner
On 31 Oct 2009, at 12:27, Erik Hofman wrote: > Which would mean that every single bit of code in FlightGear will > depend > on osg.. Which is why I didn't commit that approach. I do wonder on the need to be supporting GCC versions earlier than 4.0, though. James -

Re: [Flightgear-devel] Question regarding pre-processor code in SIMGEAR/simgear/compiler.h

2009-10-31 Thread Erik Hofman
James Turner wrote: > On 31 Oct 2009, at 08:48, Erik Hofman wrote: > >>> I am not sure what line 135 is supposed to catch. When I compile with >>> g++ version 4.2 the statement is false but if I compile with g++ >>> version >>> 4.3 the statement is true. Is the code supposed to catch g++ version

Re: [Flightgear-devel] Question regarding pre-processor code in SIMGEAR/simgear/compiler.h

2009-10-31 Thread James Turner
On 31 Oct 2009, at 08:48, Erik Hofman wrote: >> I am not sure what line 135 is supposed to catch. When I compile with >> g++ version 4.2 the statement is false but if I compile with g++ >> version >> 4.3 the statement is true. Is the code supposed to catch g++ versions >> 3.3 and later? If yes,

Re: [Flightgear-devel] Question regarding pre-processor code in SIMGEAR/simgear/compiler.h

2009-10-31 Thread Erik Hofman
Jari Häkkinen wrote: > I am not sure what line 135 is supposed to catch. When I compile with > g++ version 4.2 the statement is false but if I compile with g++ version > 4.3 the statement is true. Is the code supposed to catch g++ versions > 3.3 and later? If yes, the line 135 should be > > #if

[Flightgear-devel] Question regarding pre-processor code in SIMGEAR/simgear/compiler.h

2009-10-30 Thread Jari Häkkinen
I have a question about a code segment in SIMGEAR/simgear/compiler.h lines 133-147 (latest CVS version). 133 #ifdef __APPLE__ 134 # ifdef __GNUC__ 135 #if ( __GNUC__ >= 3 ) && ( __GNUC_MINOR__ >= 3 ) 136 inline int (isnan)(double r) { return !(r <= 0 || r >= 0); } 137 #else 138// any