diff --git a/plugins/openscenegraph/io/OSGReader.cpp b/plugins/openscenegraph/io/OSGReader.cpp index 0c0afbf004..17843d141d 100644 --- a/plugins/openscenegraph/io/OSGReader.cpp +++ b/plugins/openscenegraph/io/OSGReader.cpp @@ -50,8 +50,8 @@ struct CollectTriangles { verts = new osg::Vec3Array(); } -#ifdef OSG_VERSION_LESS_THAN -#if OSG_VERSION_LESS_THAN(3,5,6) +#ifdef OSG_VERSION_GREATER_THAN +#if OSG_VERSION_GREATER_THAN(3,2,0) inline void operator () (const osg::Vec3& v1, const osg::Vec3& v2, const osg::Vec3& v3, bool treatVertexDataAsTemporary) #else inline void operator () (const osg::Vec3& v1, const osg::Vec3& v2, const osg::Vec3& v3)