Thanks Alberto, fix merged and submitted to SVN.
On Mon, Nov 24, 2008 at 3:56 PM, Alberto Luaces <[EMAIL PROTECTED]> wrote: > Hi, > > Cygwin build was breaking on osgAnimation because the file Timeline includes > <cmath> which undefines isnan and defines std::isnan instead: > > from /.../trunk/include/osg/StateSet:21, > from /.../trunk/include/osg/Node:19, > from /.../trunk/include/osg/Group:17, > from /.../trunk/include/osgAnimation/Timeline:23, > from /.../trunk/src/osgAnimation/Timeline.cpp:15: > /.../trunk/include/osg/Math: In function 'bool osg::isNaN(float)': > > /.../trunk/include/osg/Math:208: error: 'isnan' was not declared in this scope > > /.../trunk/include/osg/Math: In function 'bool osg::isNaN(double)': > > Since Timeline.cpp nor Timeline itself doesn't use any math functions, I think > the best way is to remove the line including <cmath>. If those functions are > needed later, we could use <math.h> or even better, <osg/Math>. > > I have tested that it works on Cygwin and Linux. > > Alberto > > _______________________________________________ > osg-submissions mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org > > _______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
