Hi Osfield,

I make a series of tests, and maybe the cause of the problem is this:

In a c++ program:

#define OSG_GL_FIXED_FUNCTION_AVAILABLE
#if defined(OSG_GL_FIXED_FUNCTION_AVAILABLE)    // <== this line returns true

but if you write like the following lines:

#define OSG_GL_FIXED_FUNCTION_AVAILABLE
#define FIXED_FUNCTION defined(OSG_GL_FIXED_FUNCTION_AVAILABLE)
#if !FIXED_FUNCTION                                                             
// <== this line returns true (wrong)

so, I think '#if defined(...)' or ''#if !defined(...)'' must be used in one 
line (must be used together), as least MSVC++ is doing so.


Thank you!

Cheers,
Li

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=70547#70547





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

Reply via email to