From 435f410bf89e3b91a70050851aabd6293a61c1c0 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 10 Apr 2009 11:19:34 +0000 Subject: [PATCH] Fixed build error by replacing M_PI with osg::PI. --- examples/osgdepthpartition/osgdepthpartition.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/osgdepthpartition/osgdepthpartition.cpp b/examples/osgdepthpartition/osgdepthpartition.cpp index 89b54ed17..96641a295 100644 --- a/examples/osgdepthpartition/osgdepthpartition.cpp +++ b/examples/osgdepthpartition/osgdepthpartition.cpp @@ -72,7 +72,7 @@ osg::Node* createScene() unitCircle->setColorBinding(osg::Geometry::BIND_OVERALL); const unsigned int n_points = 1024; osg::Vec3Array * coords = new osg::Vec3Array(n_points); - const double dx = 2.0*M_PI/n_points; + const double dx = 2.0*osg::PI/n_points; double s,c; for (unsigned int j=0; j