newer versions of gcc whine about typedef-ing void, so change it to a #define

OK steven@
This commit is contained in:
phessler 2009-10-10 13:55:44 +00:00
parent 3442c475d7
commit c33a469910
2 changed files with 17 additions and 2 deletions

View File

@ -1,9 +1,9 @@
# $OpenBSD: Makefile,v 1.8 2009/08/26 12:12:46 kili Exp $
# $OpenBSD: Makefile,v 1.9 2009/10/10 13:55:44 phessler Exp $
COMMENT= cross-platform 3D audio API
DISTNAME= openal-0.0.8
PKGNAME= ${DISTNAME}p0
PKGNAME= ${DISTNAME}p1
CATEGORIES= audio
SHARED_LIBS += openal 1.0 # .0.0

View File

@ -0,0 +1,15 @@
$OpenBSD: patch-common_include_AL_alc_h,v 1.1 2009/10/10 13:55:44 phessler Exp $
typedef void is illegal in newer versions of GCC
--- common/include/AL/alc.h.orig Sun May 17 21:50:13 2009
+++ common/include/AL/alc.h Sun May 17 21:50:29 2009
@@ -82,7 +82,7 @@ typedef float ALCfloat;
typedef double ALCdouble;
/** void type (for opaque pointers only) */
-typedef void ALCvoid;
+#define ALCvoid void
/* Enumerant values begin at column 50. No tabs. */