Fixed compiler error with the latest Xcode package
authorSam Lantinga <slouken@libsdl.org>
Tue, 18 Jan 2011 14:26:30 -0800
changeset 5020 6dfc9c4a9ae5
parent 5019 64a2d8f538a1
child 5021 cd3a1d87cab7
Fixed compiler error with the latest Xcode package
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)