[ODE] dCylinder and sqrtf on Mac OS X

Ruud van Gaal ruud at marketgraph.nl
Fri Mar 21 12:41:02 2003


> I had to change all the sqrtf() to sqrt() in dCylinder.cpp to get it 
> compile on Mac OS X. Is there a missing include or magic define that 
> could fix it ?

Please keep it at sqrtf() and define it to be sqrt() or something like that
(provide a stub float sqrtf(float n)).
sqrt() inputs a double, so sqrtf() can really be worthwhile when using
floats, and when it's available (most systems have it now; even on MSVC7 I
saw a cosf() today).

Ruud