From 9aef15f5d04f33dc706219da57799a1b022b6da1 Mon Sep 17 00:00:00 2001 From: meep-eep Date: Fri, 8 Apr 2005 19:15:33 +0000 Subject: [PATCH] Warnings cleanup. git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1621 8092fc87-c524-0410-9efc-e669fe64eaf9 --- .../sc2code/libs/sound/openal/audiodrv_openal.c | 2 ++ .../sc2code/libs/sound/openal/audiodrv_openal.h | 14 ++++++++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/sc2/src/sc2code/libs/sound/openal/audiodrv_openal.c b/sc2/src/sc2code/libs/sound/openal/audiodrv_openal.c index 675caace9..c1861fb64 100644 --- a/sc2/src/sc2code/libs/sound/openal/audiodrv_openal.c +++ b/sc2/src/sc2code/libs/sound/openal/audiodrv_openal.c @@ -23,6 +23,8 @@ #include "audiodrv_openal.h" #include "libs/tasklib.h" +#include + ALCcontext *alcContext = NULL; ALCdevice *alcDevice = NULL; diff --git a/sc2/src/sc2code/libs/sound/openal/audiodrv_openal.h b/sc2/src/sc2code/libs/sound/openal/audiodrv_openal.h index 4e0aa9e21..a781a0869 100644 --- a/sc2/src/sc2code/libs/sound/openal/audiodrv_openal.h +++ b/sc2/src/sc2code/libs/sound/openal/audiodrv_openal.h @@ -33,8 +33,18 @@ #else # include # include -# define AL_INVALID_ENUM AL_ILLEGAL_ENUM -# define AL_INVALID_OPERATION AL_ILLEGAL_COMMAND + /* XXX: In new versions of OpenAL the defines AL_INVALID_ENUM and + * AL_INVALID_OPERATION are already defined. + * As you can only get OpenAL from CVS (or a 3rd party package), + * we can probably remove these defines altogether in the near + * future. + */ +# ifndef AL_INVALID_ENUM +# define AL_INVALID_ENUM AL_ILLEGAL_ENUM +# endif +# ifndef AL_INVALID_OPERATION +# define AL_INVALID_OPERATION AL_ILLEGAL_COMMAND +# endif # define AL_DATA 0x2005 #endif