summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/glrender.h
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-06-18 22:32:52 +0000
committerKarl Berry <karl@freefriends.org>2011-06-18 22:32:52 +0000
commit98f7836b6d90b603493db0711e2034eb1b9b4a11 (patch)
tree8d205987af09a3c4681887297504bf9270b43d49 /Build/source/utils/asymptote/glrender.h
parentd5ba3cbe3e11d400bd14a4dead31fb850516595f (diff)
asy 2.11 sources
git-svn-id: svn://tug.org/texlive/trunk@23044 c570f23f-e606-0410-a88d-b1316a301751
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;