openbsd-ports/audio/openal/patches/patch-common_include_AL_alc_h

26 lines
734 B
Plaintext

$OpenBSD: patch-common_include_AL_alc_h,v 1.2 2009/10/14 14:27:34 naddy Exp $
plain char is unsigned on some architectures
typedef void is illegal in newer versions of GCC
--- common/include/AL/alc.h.orig Sat Feb 11 10:36:55 2006
+++ common/include/AL/alc.h Wed Oct 14 16:22:38 2009
@@ -52,7 +52,7 @@ typedef char ALCboolean;
typedef char ALCchar;
/** signed 8-bit 2's complement integer */
-typedef char ALCbyte;
+typedef signed char ALCbyte;
/** unsigned 8-bit integer */
typedef unsigned char ALCubyte;
@@ -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. */