Re: The ddraw tests don't compile with Visual C++ 2005.

2007-06-01 Thread Kuba Ober
On Sunday 27 May 2007, Francois Gouget wrote: > On Sun, 27 May 2007, Marcus Meissner wrote: > [...] > > > Why doesn't the code try using the INFINITY and NAN #defines? > > Would this help with Visual C++? > > Do you mean the INFINITY macro defined in /usr/include/bits/inf.h? > (which one gets throu

Re: The ddraw tests don't compile with Visual C++ 2005.

2007-05-27 Thread Francois Gouget
On Sun, 27 May 2007, Marcus Meissner wrote: [...] > Why doesn't the code try using the INFINITY and NAN #defines? > Would this help with Visual C++? Do you mean the INFINITY macro defined in /usr/include/bits/inf.h? (which one gets through math.h) I have not found any macro called INFINITY in th

Re: The ddraw tests don't compile with Visual C++ 2005.

2007-05-27 Thread Marcus Meissner
On Sun, May 27, 2007 at 01:17:23PM +0200, Francois Gouget wrote: > > Visual C++ 2005 does not like the way we compute the infinity and NaN > values. I've tried replacing the current divisions by zero with > arithmetic on FLT_MAX (at least for the infinity calculations), but it > did not like th

Re: The ddraw tests don't compile with Visual C++ 2005.

2007-05-27 Thread Stefan Dösinger
Am Sonntag 27 Mai 2007 13:17 schrieb Francois Gouget: > Visual C++ 2005 does not like the way we compute the infinity and NaN > values. I've tried replacing the current divisions by zero with > arithmetic on FLT_MAX (at least for the infinity calculations), but it > did not like that either. > > Do

The ddraw tests don't compile with Visual C++ 2005.

2007-05-27 Thread Francois Gouget
Visual C++ 2005 does not like the way we compute the infinity and NaN values. I've tried replacing the current divisions by zero with arithmetic on FLT_MAX (at least for the infinity calculations), but it did not like that either. Does anyone know how to make these calculations portable? How d