summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/glrender.h
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/utils/asymptote/glrender.h')
-rw-r--r--Build/source/utils/asymptote/glrender.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/Build/source/utils/asymptote/glrender.h b/Build/source/utils/asymptote/glrender.h
index 22b52fe95ce..2123f906e3c 100644
--- a/Build/source/utils/asymptote/glrender.h
+++ b/Build/source/utils/asymptote/glrender.h
@@ -17,7 +17,12 @@
#include <OpenGL/gl.h>
#include <OpenGL/glext.h>
#include <OpenGL/glu.h>
+#ifdef HAVE_LIBGLUT
#include <GLUT/glut.h>
+#endif
+#ifdef HAVE_LIBOSMESA
+#include <GL/osmesa.h> // TODO: where would you find osmesa on a mac?
+#endif
#ifdef GLU_TESS_CALLBACK_TRIPLEDOT
typedef GLvoid (* _GLUfuncptr)(...);
#else
@@ -27,8 +32,13 @@ typedef GLvoid (* _GLUfuncptr)();
#include <GL/gl.h>
#include <GL/glext.h>
#include <GL/glu.h>
+#ifdef HAVE_LIBGLUT
#include <GL/glut.h>
#endif
+#ifdef HAVE_LIBOSMESA
+#include <GL/osmesa.h>
+#endif
+#endif
namespace camp {
class picture;