X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=glwrap.c;h=c37bae3a16ab1b63ad1883ed5f6c46fdf4def4c8;hb=fa324e0ec0fbd4becdb000d4b9d8c17d5b79f92a;hp=3a789fc131e0c693c398386b8f6f152038cfda35;hpb=b8b9a79e315bf3a030c3b0840ad1490746b5a8e0;p=fips diff --git a/glwrap.c b/glwrap.c index 3a789fc..c37bae3 100644 --- a/glwrap.c +++ b/glwrap.c @@ -23,6 +23,23 @@ #include "glwrap.h" +/* The prototypes for some OpenGL functions changed at one point from: + * + * const void* *indices + * to: + * const void* const coist *indices + * + * This makes it difficult for us to provide an implementation of + * these functions that is consistent with the locally-available gl.h + * since we don't know if the extra const will be present or not. + * + * To workaround this problem, we simply #define away const altogether + * before including gl.h. + * + * Kudos to Keith Packard for suggesting this kludge. + */ +#define const + #define GL_GLEXT_PROTOTYPES #include