diff options
author | Sam Lantinga <slouken@libsdl.org> | 2006-04-12 14:37:05 +0000 |
---|---|---|
committer | Sam Lantinga <slouken@libsdl.org> | 2006-04-12 14:37:05 +0000 |
commit | 150575a5cf968c2faf050ca761cdd64c1b1f7a21 (patch) | |
tree | 4a5562d8715fec9b7f5e02e39bdceb9df2db97b6 /include/SDL_opengl.h | |
parent | d399ca9ce4282d93ed7bfdaa07d78de7be18bbf0 (diff) |
From Anders F Bjorklund:
When switching to "UNIX-style paths" as needed for the new includes,
including <GL/gl.h> and <GL/glu.h> doesn't work anymore on Mac OS...
The two headers are really located in the OpenGL SDK 1.2 CFM like this:
OpenGL:Headers:gl.h
OpenGL:Headers:glu.h
There are also some compat copies, that *used* to work with Mac paths:
OpenGL:Headers:GL/gl.h
OpenGL:Headers:GL/glu.h
The easiest fix is to make SDL_opengl.h include the proper header names,
by adding a special case for the MACOS platform in addition to the MACOSX
Diffstat (limited to 'include/SDL_opengl.h')
-rw-r--r-- | include/SDL_opengl.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/SDL_opengl.h b/include/SDL_opengl.h index a9539c3ce9..36c0a3099e 100644 --- a/include/SDL_opengl.h +++ b/include/SDL_opengl.h @@ -37,6 +37,9 @@ #if defined(__MACOSX__) #include <OpenGL/gl.h> /* Header File For The OpenGL Library */ #include <OpenGL/glu.h> /* Header File For The GLU Library */ +#elif defined(__MACOS__) +#include <gl.h> /* Header File For The OpenGL Library */ +#include <glu.h> /* Header File For The GLU Library */ #else #include <GL/gl.h> /* Header File For The OpenGL Library */ #include <GL/glu.h> /* Header File For The GLU Library */ |