From: timoore Date: Mon, 13 Aug 2007 15:02:42 +0000 (+0000) Subject: Fix test for osg::Viewer.setUpdateVisitor X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3bf9ab10980e93a77a119441a0df81a46a5f2f04;p=flightgear.git Fix test for osg::Viewer.setUpdateVisitor My last attempt reversed the sense of the test and for to include the osg/Version header file. --- diff --git a/src/Main/renderer.cxx b/src/Main/renderer.cxx index 3a7b944c4..bbb7557e2 100644 --- a/src/Main/renderer.cxx +++ b/src/Main/renderer.cxx @@ -49,6 +49,7 @@ #include #include #include +#include #include #include @@ -102,8 +103,8 @@ #include "main.hxx" // XXX Make this go away when OSG 2.2 is released. -#if ((2 >= OSG_VERSION_MAJOR) && (1 >= OSG_VERSION_MINOR) \ - && (4 >= OSG_VERSION_PATCH)) +#if ((2 <= OSG_VERSION_MAJOR) && (1 <= OSG_VERSION_MINOR) \ + && (4 <= OSG_VERSION_PATCH)) #define UPDATE_VISITOR_IN_VIEWER 1 #endif