changeset 5020:6dfc9c4a9ae5

Fixed compiler error with the latest Xcode package
author Sam Lantinga <slouken@libsdl.org>
date Tue, 18 Jan 2011 14:26:30 -0800
parents 64a2d8f538a1
children cd3a1d87cab7
files src/video/x11/SDL_x11opengl.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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)