# HG changeset patch # User Sam Lantinga # Date 1295389590 28800 # Node ID 6dfc9c4a9ae55f7a63f4aa98455a6ea81499a2ce # Parent 64a2d8f538a1cd2ab833a2361f67897bf13543e3 Fixed compiler error with the latest Xcode package diff -r 64a2d8f538a1 -r 6dfc9c4a9ae5 src/video/x11/SDL_x11opengl.c --- a/src/video/x11/SDL_x11opengl.c Tue Jan 18 14:21:10 2011 -0800 +++ b/src/video/x11/SDL_x11opengl.c Tue Jan 18 14:26:30 2011 -0800 @@ -81,6 +81,7 @@ static void X11_GL_InitExtensions(_THIS); /* Typedef for the GL 3.0 context creation function */ +#ifndef GLX_ARB_create_context typedef GLXContext(*PFNGLXCREATECONTEXTATTRIBSARBPROC) (Display * dpy, GLXFBConfig config, GLXContext @@ -88,6 +89,7 @@ Bool direct, const int *attrib_list); +#endif /* GLX_ARB_create_context */ int X11_GL_LoadLibrary(_THIS, const char *path)