summaryrefslogtreecommitdiff
path: root/graphics/asymptote/glew.c
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/asymptote/glew.c')
-rw-r--r--graphics/asymptote/glew.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/graphics/asymptote/glew.c b/graphics/asymptote/glew.c
index f6b50465b9..a6009a40e8 100644
--- a/graphics/asymptote/glew.c
+++ b/graphics/asymptote/glew.c
@@ -6,9 +6,16 @@
#define _WIN32
#endif
+#ifndef GLEW_INCLUDE
+#include <GL/glew.h>
+#else
+#include GLEW_INCLUDE
+#endif
+
#ifdef HAVE_LIBGL
#ifdef HAVE_LIBOSMESA
#define GLEW_OSMESA
+#define APIENTRY
#endif
#include "GL/glew.c"