Fixed compiler error with the latest Xcode package
authorSam Lantinga
Tue, 18 Jan 2011 14:26:30 -0800
changeset 50206dfc9c4a9ae5
parent 5019 64a2d8f538a1
child 5021 cd3a1d87cab7
Fixed compiler error with the latest Xcode package
src/video/x11/SDL_x11opengl.c
     1.1 --- a/src/video/x11/SDL_x11opengl.c	Tue Jan 18 14:21:10 2011 -0800
     1.2 +++ b/src/video/x11/SDL_x11opengl.c	Tue Jan 18 14:26:30 2011 -0800
     1.3 @@ -81,6 +81,7 @@
     1.4  static void X11_GL_InitExtensions(_THIS);
     1.5  
     1.6  /* Typedef for the GL 3.0 context creation function */
     1.7 +#ifndef GLX_ARB_create_context
     1.8  typedef GLXContext(*PFNGLXCREATECONTEXTATTRIBSARBPROC) (Display * dpy,
     1.9                                                          GLXFBConfig config,
    1.10                                                          GLXContext
    1.11 @@ -88,6 +89,7 @@
    1.12                                                          Bool direct,
    1.13                                                          const int
    1.14                                                          *attrib_list);
    1.15 +#endif /* GLX_ARB_create_context */
    1.16  
    1.17  int
    1.18  X11_GL_LoadLibrary(_THIS, const char *path)