OpenAL headers cleanup.

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1763 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
meep-eep
2005-05-15 11:37:18 +00:00
parent 04f9fb59ef
commit 0ffe277394
2 changed files with 6 additions and 19 deletions
+3
View File
@@ -1,4 +1,7 @@
Changes towards version 0.4: Changes towards version 0.4:
- OpenAL header cleanup. Updating OpenAL may be necessary.
Windows users should put the OpenAL headers in an AL/ directory
now too (should be the default). - SvdB
- Improvements to the unix build system for cross-compilation - SvdB - Improvements to the unix build system for cross-compilation - SvdB
- Do not define ssize_t for MinGW. - SvdB - Do not define ssize_t for MinGW. - SvdB
- Fallback readdir_r() - SvdB - Fallback readdir_r() - SvdB
@@ -24,31 +24,15 @@
#include "libs/sound/sound.h" #include "libs/sound/sound.h"
#include "options.h" #include "options.h"
#if defined(WIN32) #if defined (__APPLE__)
# include <al.h>
# include <alc.h>
# ifdef _MSC_VER
# pragma comment (lib, "OpenAL32.lib")
# endif
#elif defined (__APPLE__)
# include <OpenAL/al.h> # include <OpenAL/al.h>
# include <OpenAL/alc.h> # include <OpenAL/alc.h>
#else #else
# include <AL/al.h> # include <AL/al.h>
# include <AL/alc.h> # include <AL/alc.h>
/* XXX: In new versions of OpenAL the defines AL_INVALID_ENUM and # ifdef _MSC_VER
* AL_INVALID_OPERATION are already defined. # pragma comment (lib, "OpenAL32.lib")
* 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 # endif
# ifndef AL_INVALID_OPERATION
# define AL_INVALID_OPERATION AL_ILLEGAL_COMMAND
# endif
# define AL_DATA 0x2005
#endif #endif
/* This is just a simple endianness setup for decoders */ /* This is just a simple endianness setup for decoders */