diff options
author | Vinson Lee <vlee@vmware.com> | 2011-02-26 01:48:24 -0800 |
---|---|---|
committer | Vinson Lee <vlee@vmware.com> | 2011-02-26 01:48:24 -0800 |
commit | bf87bd6c2fbded30b3de2e557473ca3cf3d04bb6 (patch) | |
tree | f25a0dbec41fccf71093163c467427ba2afaf271 /src | |
parent | ee61936b58414df50b32455aaa5eca11399dba63 (diff) |
piglit: Add correct location of Mac OS X OpenGL header files.
The OpenGL header files on Mac OS X are in the OpenGL framework.
Diffstat (limited to 'src')
-rw-r--r-- | src/piglit/gl_wrap.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/piglit/gl_wrap.h b/src/piglit/gl_wrap.h index 7d77f7f91..cf68c737f 100644 --- a/src/piglit/gl_wrap.h +++ b/src/piglit/gl_wrap.h @@ -41,9 +41,15 @@ extern "C" { #ifdef USE_OPENGL # include "glew.h" /* Include the real headers too, in case GLEW misses something. */ -# include <GL/gl.h> -# include <GL/glu.h> -# include <GL/glext.h> +# ifdef __APPLE__ +# include <OpenGL/gl.h> +# include <OpenGL/glu.h> +# include <OpenGL/glext.h> +# else +# include <GL/gl.h> +# include <GL/glu.h> +# include <GL/glext.h> +# endif #endif #ifdef USE_OPENGL_ES2 |