On 14-Nov-99 Jean-Francois Panisset wrote:
>
> 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)
>
> ....
>
> 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?
Why do they test for the include file guard at all? Shouldn't
"#if defined(GLU_VERSION_1_2)" be enough?
Andree
_______________________________________________
Mesa-dev maillist - [EMAIL PROTECTED]
http://lists.mesa3d.org/mailman/listinfo/mesa-dev