My last attempt reversed the sense of the test and for to include the
osg/Version header file.
#include <osg/PolygonMode>
#include <osg/PolygonOffset>
#include <osg/ShadeModel>
+#include <osg/Version>
#include <osg/TexEnv>
#include <osgUtil/SceneView>
#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