From d623c0b4439943497990a83c658bee9caa027156 Mon Sep 17 00:00:00 2001 From: "J?rgen P. Tjern?" Date: Wed, 4 Jun 2014 09:59:10 -0700 Subject: [PATCH] SDL_opengl: Fix Mac build with new glext.h --- include/SDL_opengl.h | 1 + src/render/opengl/SDL_render_gl.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/SDL_opengl.h b/include/SDL_opengl.h index 2a639b982..d89185bc4 100644 --- a/include/SDL_opengl.h +++ b/include/SDL_opengl.h @@ -50,6 +50,7 @@ #define __glext_h_ /* Don't let gl.h include glext.h */ #endif #if defined(__MACOSX__) +#include /* Needed for ptrdiff_t */ #include /* Header File For The OpenGL Library */ #define __X_GL_H #else diff --git a/src/render/opengl/SDL_render_gl.c b/src/render/opengl/SDL_render_gl.c index 20a7f66a4..643f2488a 100644 --- a/src/render/opengl/SDL_render_gl.c +++ b/src/render/opengl/SDL_render_gl.c @@ -332,7 +332,7 @@ GL_ResetState(SDL_Renderer *renderer) } static void APIENTRY -GL_HandleDebugMessage(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const char *message, void *userParam) +GL_HandleDebugMessage(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const char *message, const void *userParam) { SDL_Renderer *renderer = (SDL_Renderer *) userParam; GL_RenderData *data = (GL_RenderData *) renderer->driverdata;