Add Apple-specific OpenGL include statements.

pull/3/head
whitequark 2015-03-17 19:14:47 +03:00
parent 55e2d6b06d
commit 1cd2e2be2f
1 changed files with 7 additions and 2 deletions

View File

@ -23,8 +23,13 @@
#ifdef WIN32
# include <windows.h> // required by GL headers
#endif
#include <GL/gl.h>
#include <GL/glu.h>
#ifdef __APPLE__
# 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
// carefully considered, so we disable the -Wfloat-equal warning for them