Fixed glext header conflict with system X11 gl.h on Mac OS X
System header provide syntactically different typedefs for some OpenGL functions (GLenum vs. GLint).
Fixed misprint in comments
#define GL_GLEXT_LEGACY
// include main OpenGL header provided with system
#define GL_GLEXT_LEGACY
// include main OpenGL header provided with system
-#if defined(__APPLE__) && !defined(MACOSX_USE_GLX)
#include <OpenGL/OpenGL.h>
#include <OpenGL/OpenGL.h>
+ #include <OpenGL/glu.h>
+ #define __X_GL_H // prevent chaotic gl.h inclusions to avoid compile errors
#else
#include <GL/gl.h>
#include <GL/glu.h>
#else
#include <GL/gl.h>
#include <GL/glu.h>