Patched to compile on FreeBSD 8.2.
authorRyan C. Gordon <icculus@icculus.org>
Wed, 11 Jul 2012 22:20:02 -0400
changeset 6360efd48af40ec3
parent 6359 b2a768065c32
child 6362 562a9fe60603
Patched to compile on FreeBSD 8.2.
include/SDL_opengl.h
src/video/x11/SDL_x11opengl.c
     1.1 --- a/include/SDL_opengl.h	Wed Jul 11 22:04:19 2012 -0400
     1.2 +++ b/include/SDL_opengl.h	Wed Jul 11 22:20:02 2012 -0400
     1.3 @@ -44,6 +44,10 @@
     1.4  #define NO_SDL_GLEXT 1
     1.5  #endif
     1.6  
     1.7 +#ifdef __FreeBSD__  /* !!! FIXME: temp compiler warning fix... */
     1.8 +#define NO_SDL_GLEXT 1
     1.9 +#endif
    1.10 +
    1.11  #ifdef __glext_h_
    1.12  /* Someone has already included glext.h */
    1.13  #define NO_SDL_GLEXT
     2.1 --- a/src/video/x11/SDL_x11opengl.c	Wed Jul 11 22:04:19 2012 -0400
     2.2 +++ b/src/video/x11/SDL_x11opengl.c	Wed Jul 11 22:20:02 2012 -0400
     2.3 @@ -75,6 +75,7 @@
     2.4                                                          Bool direct,
     2.5                                                          const int
     2.6                                                          *attrib_list);
     2.7 +#endif
     2.8  
     2.9  #ifndef GLX_ARB_create_context_profile
    2.10  #define GLX_ARB_create_context_profile
    2.11 @@ -90,7 +91,6 @@
    2.12  #define GLX_NO_RESET_NOTIFICATION_ARB                   0x8261
    2.13  #define GLX_LOSE_CONTEXT_ON_RESET_ARB                   0x8252
    2.14  #endif
    2.15 -#endif
    2.16  
    2.17  #ifndef GLX_EXT_create_context_es2_profile
    2.18  #define GLX_EXT_create_context_es2_profile