From fe593aa4d32af6a0a86e99a5b6300ed39db74596 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Tue, 18 Jan 2011 14:26:30 -0800 Subject: [PATCH] Fixed compiler error with the latest Xcode package --- src/video/x11/SDL_x11opengl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/video/x11/SDL_x11opengl.c b/src/video/x11/SDL_x11opengl.c index ed536ea00..3180de6fb 100644 --- a/src/video/x11/SDL_x11opengl.c +++ b/src/video/x11/SDL_x11opengl.c @@ -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 @@ typedef GLXContext(*PFNGLXCREATECONTEXTATTRIBSARBPROC) (Display * dpy, Bool direct, const int *attrib_list); +#endif /* GLX_ARB_create_context */ int X11_GL_LoadLibrary(_THIS, const char *path)