Mark Kilgard wrote:
> Can we amend Section 4 with something like:
>
> ----------
> 4.8. The <GL/gl.h> header must include the preprocessor symbol GL_HAS_GLEXT
> defined to "1" indicating that a <GL/glext.h> can be expected to exist. The
> intent of the
> GL_HAS_GLEXT preprocessor symbol is to avoid compile errors on old OpenGL
> header installations where <GL/glext.h> may not exist. This makes it
> possible
> to determine when <GL/glext.h> exists for inclusion, enabling apps to do
> something like:
>
> #include <GL/gl.h>
> #ifdef GL_HAS_GLEXT
> #include <GL/glext.h>
> #endif
> ----------
I'm in favor of this. It would help with portability and doesn't appear
to have any downsides (if you don't like GL_HAS_GLEXT you can ignore its
existance).
As Steve said, autoconf could detect glext.h. But not everyone uses autoconf.
-Brian