1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-01 01:17:02 +00:00

- 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
This commit is contained in:
Sergey Matveychuk 2006-01-18 17:20:18 +00:00
parent 18d3f04b0b
commit 18f1ca848c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=153826
2 changed files with 14 additions and 0 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= glew
PORTVERSION= 1.3.3
PORTREVISION= 1
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}

View File

@ -0,0 +1,13 @@
--- 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