SDL_opengl: Fix Mac build with new glext.h
authorJørgen P. Tjernø <jorgen@uberent.com>
Wed, 04 Jun 2014 09:59:10 -0700
changeset 88113f0b8a86c65b
parent 8810 901ac824a18b
child 8812 b0f96c169c97
SDL_opengl: Fix Mac build with new glext.h
include/SDL_opengl.h
src/render/opengl/SDL_render_gl.c
     1.1 --- a/include/SDL_opengl.h	Wed Jun 04 09:39:08 2014 -0700
     1.2 +++ b/include/SDL_opengl.h	Wed Jun 04 09:59:10 2014 -0700
     1.3 @@ -50,6 +50,7 @@
     1.4  #define __glext_h_              /* Don't let gl.h include glext.h */
     1.5  #endif
     1.6  #if defined(__MACOSX__)
     1.7 +#include <stddef.h>             /* Needed for ptrdiff_t */
     1.8  #include <OpenGL/gl.h>          /* Header File For The OpenGL Library */
     1.9  #define __X_GL_H
    1.10  #else
     2.1 --- a/src/render/opengl/SDL_render_gl.c	Wed Jun 04 09:39:08 2014 -0700
     2.2 +++ b/src/render/opengl/SDL_render_gl.c	Wed Jun 04 09:59:10 2014 -0700
     2.3 @@ -332,7 +332,7 @@
     2.4  }
     2.5  
     2.6  static void APIENTRY
     2.7 -GL_HandleDebugMessage(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const char *message, void *userParam)
     2.8 +GL_HandleDebugMessage(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const char *message, const void *userParam)
     2.9  {
    2.10      SDL_Renderer *renderer = (SDL_Renderer *) userParam;
    2.11      GL_RenderData *data = (GL_RenderData *) renderer->driverdata;