diff --git a/auto/src/glew_gl.c b/auto/src/glew_gl.c index 846b834..83a9a4e 100644 --- a/auto/src/glew_gl.c +++ b/auto/src/glew_gl.c @@ -36,7 +36,7 @@ GLboolean glewGetExtension (const GLubyte *name) { GLubyte *p, *end; GLuint len = _glewStrLen(name); - p = glGetString(GL_EXTENSIONS); + p = (GLubyte*)glGetString(GL_EXTENSIONS); if (0 == p) return GL_FALSE; end = p + _glewStrLen(p); while (p < end) @@ -52,7 +52,7 @@ GLboolean glewGetExtension (const GLubyte *name) static GLuint _glewInit () { - GLubyte* s; + const GLubyte* s; GLuint i; /* query opengl version */ s = glGetString(GL_VERSION); diff --git a/auto/src/glewinfo_pre.c b/auto/src/glewinfo_pre.c index eafdd04..1c38049 100644 --- a/auto/src/glewinfo_pre.c +++ b/auto/src/glewinfo_pre.c @@ -42,9 +42,9 @@ static void glewPrintExt (const GLubyte* name, GLboolean defined) { unsigned int i; fprintf(f, "\n%s:", name); - for (i=0; i<62-strlen(name); i++) fprintf(f, " "); + for (i=0; i<62-strlen((const char*)name); i++) fprintf(f, " "); fprintf(f, "%s\n", defined ? "OK" : "MISSING"); - for (i=0; i