include/SDL_opengl.h
changeset 3241 08c5964f2a34
parent 3240 6c4736b446e8
child 3407 d3baf5ac4e37
     1.1 --- a/include/SDL_opengl.h	Sat Sep 05 07:13:01 2009 +0000
     1.2 +++ b/include/SDL_opengl.h	Sat Sep 05 07:33:54 2009 +0000
     1.3 @@ -22,6 +22,9 @@
     1.4  
     1.5  /* This is a simple file to encapsulate the OpenGL API headers */
     1.6  
     1.7 +#ifndef _SDL_opengl_h
     1.8 +#define _SDL_opengl_h
     1.9 +
    1.10  #include "SDL_config.h"
    1.11  
    1.12  #ifdef __WIN32__
    1.13 @@ -37,6 +40,7 @@
    1.14  #if defined(__MACOSX__)
    1.15  #include <OpenGL/gl.h>          /* Header File For The OpenGL Library */
    1.16  #include <OpenGL/glu.h>         /* Header File For The GLU Library */
    1.17 +#define __X_GL_H
    1.18  #else
    1.19  #include <GL/gl.h>              /* Header File For The OpenGL Library */
    1.20  #include <GL/glu.h>             /* Header File For The GLU Library */
    1.21 @@ -9307,3 +9311,7 @@
    1.22  #endif
    1.23  /* *INDENT-ON* */
    1.24  #endif /* NO_SDL_GLEXT */
    1.25 +
    1.26 +#endif /* _SDL_opengl_h */
    1.27 +
    1.28 +/* vi: set ts=4 sw=4 expandtab: */