From 815ad714b44281f367dc8e27d607994d714f749f Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 20 Mar 2001 17:56:10 +0000 Subject: fixes to make old GLU code compile with new GLU 1.3 header --- src/glu/mesa/glu.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'src/glu/mesa/glu.c') diff --git a/src/glu/mesa/glu.c b/src/glu/mesa/glu.c index d7d8b93bdb..7cc5fab156 100644 --- a/src/glu/mesa/glu.c +++ b/src/glu/mesa/glu.c @@ -1,4 +1,4 @@ -/* $Id: glu.c,v 1.23 2001/01/30 18:08:51 brianp Exp $ */ +/* $Id: glu.c,v 1.24 2001/03/20 17:56:10 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -43,7 +43,9 @@ #endif #define EPS 0.00001 - +#ifndef GLU_INCOMPATIBLE_GL_VERSION +#define GLU_INCOMPATIBLE_GL_VERSION 100903 +#endif void GLAPIENTRY @@ -181,7 +183,7 @@ gluPerspective(GLdouble fovy, GLdouble aspect, GLdouble zNear, GLdouble zFar) void GLAPIENTRY gluPickMatrix(GLdouble x, GLdouble y, - GLdouble width, GLdouble height, const GLint viewport[4]) + GLdouble width, GLdouble height, GLint viewport[4]) { GLfloat m[16]; GLfloat sx, sy; @@ -392,16 +394,16 @@ void (GLAPIENTRY * gluGetProcAddressEXT(const GLubyte * procName)) () */ #ifdef GLU_VERSION_1_3 GLboolean GLAPIENTRY -gluCheckExtension(const char *extName, const GLubyte * extString) +gluCheckExtension(const GLubyte *extName, const GLubyte * extString) { assert(extName); assert(extString); { - const int len = strlen(extName); + const int len = strlen((const char *) extName); const char *start = (const char *) extString; while (1) { - const char *c = strstr(start, extName); + const char *c = strstr(start, (const char *) extName); if (!c) return GL_FALSE; -- cgit v1.2.3