[ODE] auto-disable patch (yet again)

Colin Bonstead colin at cyan.com
Thu Apr 22 09:44:08 MST 2004


And one more little thing.  In the single precision math functions in 
common.h, you'll want to change

#define dSqrt(x) ((float)sqrtf(x))		/* square root */

to

#define dSqrt(x) ((float)sqrtf(float(x)))		/* square root */

Otherwise VC7.1 will throw a warning about casting a double to a float 
in the double version of dDISTANCE.  VC7.1 throws out a lot more 
warnings that VC6.

-----Original Message-----
From: Colin Bonstead <colin at cyan.com>
Sent: Thu, 22 Apr 2004 08:49:23 -0700
To: ode <ODE at q12.org>
Subject: Re: [ODE] auto-disable patch (yet again)

A couple more fixes, for Windows...

In common.h, you'll need to change dCopySign to this:

#ifdef WIN32
#define dCopySign(a,b) ((float)_copysign((a),(b)))
#else
#define dCopySign(a,b) ((float)copysignf((a),(b)))
#endif

And in the Windows version of dError and dDebug (in error.cpp), you'll
want to put an underscore in front of snprintf and vsnprintf.

Apparently MS doesn't think those functions should be standard.

-----Original Message-----
From: Russ Smith <russ at q12.org>
Sent: Thu, 22 Apr 2004 07:13:14 -0700 (MST)
To: Aras Pranckevicius <nearaz at interamotion.com>
Subject: Re: [ODE] auto-disable patch (yet again)


> It seems that a call to dInternalHandleAutoDisabling is missing...

oops ... fixed.

russ.

--
Russ Smith
http://www.q12.org/



_______________________________________________
ODE mailing list
ODE at q12.org
http://q12.org/mailman/listinfo/ode






More information about the ODE mailing list