Add Apple-specific OpenGL include statements.

This commit is contained in:
whitequark 2015-03-17 19:14:47 +03:00
parent 55e2d6b06d
commit 1cd2e2be2f

View File

@ -23,8 +23,13 @@
#ifdef WIN32 #ifdef WIN32
# include <windows.h> // required by GL headers # include <windows.h> // required by GL headers
#endif #endif
#include <GL/gl.h> #ifdef __APPLE__
#include <GL/glu.h> # include <OpenGL/gl.h>
# include <OpenGL/glu.h>
#else
# include <GL/gl.h>
# include <GL/glu.h>
#endif
// The few floating-point equality comparisons in SolveSpace have been // The few floating-point equality comparisons in SolveSpace have been
// carefully considered, so we disable the -Wfloat-equal warning for them // carefully considered, so we disable the -Wfloat-equal warning for them