Richard Bytheway writes:

> I changed my copy to use min() rather than fmin() (W2K, cygwin, gcc
version 2.95.3-5 (cygwin special)).
> Builds, links, and appears to run OK.

Yes that works,  however it would be nice to be able to use
the (f) version of the common math functions when they are
available in that they **maybe** faster depending on the
machine compiler combination.

AFAIK This was part of the rationale behind their addition to the C99
standard

Cheers

Norman

> > -----Original Message-----
> > From: Bernie Bright [mailto:[EMAIL PROTECTED]]
> > Sent: 24 September 2002 10:34 am
> > To: [EMAIL PROTECTED]
> > Subject: Re: [Flightgear-devel] MSVC 6.0 Problem with
> > systems/vacuum/vacuum.cxx
> >
> >
> > On Tue, 24 Sep 2002 03:46:54 -0400
> > "Norman Vine" <[EMAIL PROTECTED]> wrote:
> >
> > > Bernie Bright writes:
> > >
> > > > On Mon, 23 Sep 2002 18:51:25 -0700
> > > > Jonathan Polley <[EMAIL PROTECTED]> wrote:
> > > >
> > > > > MSVC does not have fmin() defined, so complains in vacuum.cxx.
> > > > >
> > > >
> > > > gcc 2.95.3 complains too.  fmin() is only defined if
> > _ISOC99_SOURCE is
> > > defined before including <math.h>.
> > >
> > > I wonder if we are going to need a sg_math.h
> > > if so here is a first stab at one
> > >
> > [cut]
> >
> > Well, as far as I can tell, fmin() is C99 not Std C++.  We
> > could use std::min() but that causes a problem with MSVC
> > where you have to use cpp_min() instead.  And so it goes on...
> >
> > Bernie
> >
> >
>
> _______________________________________________
> Flightgear-devel mailing list
> [EMAIL PROTECTED]
> http://mail.flightgear.org/mailman/listinfo/flightgear-devel
>


_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to