freebsd-ports/graphics/glew/files/patch-include_GL_glew.h
Sergey Matveychuk 18f1ca848c - Fix undefined symbol errors when including glut.h just after glew.h in
applications which depends on both of them.
- Bumped PORTREVISION.

PR:		ports/91944
Submitted by:	maintainer
2006-01-18 17:20:18 +00:00

13 lines
362 B
C

--- include/GL/glew.h.orig
+++ include/GL/glew.h
@@ -9647,7 +9647,9 @@
#ifdef GLEW_APIENTRY_DEFINED
#undef GLEW_APIENTRY_DEFINED
#undef APIENTRY
-#undef GLAPIENTRY
+/* Do not undef GLAPIENTRY here. This is a quick hack to avoid
+ undefined symbols when including glut.h just after glew.h */
+/* #undef GLAPIENTRY */
#endif
#ifdef GLEW_CALLBACK_DEFINED