I was playing around with the Template Graphics implementation of
OpenInventor, and in one of the include files, I found:

#if defined(__glu_h__) && defined(GLU_VERSION_1_2)
#define gluTESSELATOR  GLUtesselator
#else
#define gluTESSELATOR  GLUtriangulatorObj
extern "C" {
     struct GLUtriangulatorObj;
}
#endif

This caused problems when compiling against the current version of
MESA glu.h.

__glu_h__ is the include guard used by the IRIX version of GL/glu.h
(and __gl_h__ is used for GL/gl.h). MESA uses GL_H and GLU_H respectively.


The solution was simple:

#if (defined(__glu_h__) || defined(GLU_H)) && defined(GLU_VERSION_1_2)
...


but this brings up the question: as we are heading towards a common
gl.h and glu.h (BTW, thanks for making the GLenums #defines, it made
my life a lot easier !), should this also extend to common include guards?

JF


Jean-Francois Panisset                                [EMAIL PROTECTED]
Software Engineer
Discreet Logic 


_______________________________________________
Mesa-dev maillist  -  [EMAIL PROTECTED]
http://lists.mesa3d.org/mailman/listinfo/mesa-dev

Reply via email to