Oopps accidentally sent last post before I was ready.  Meant to add:

I wonder if one could do the following:

#if !defined(LIBRSVG_CHECK_VERSION) || !LIBRSVG_CHECK_VERSION(2, 36, 2)
        #include <librsvg/rsvg-cairo.h>
#endif

So the whole block would look like:

extern "C" {
        #include <librsvg/rsvg.h>

#ifndef LIBRSVG_CHECK_VERSION
        #include <librsvg/librsvg-features.h>
#endif

#if !defined(LIBRSVG_CHECK_VERSION) || !LIBRSVG_CHECK_VERSION(2, 36, 2)
        #include <librsvg/rsvg-cairo.h>
#endif
}

This would avoid the need for an #if #else #endif block.

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to