diff --git a/src/openal/sound.c b/src/openal/sound.c
index d046803dc4d0f0018d6039b5e73e3b91726160bb..fc1e60ab43b37acfeccea68b4c86a26eef80e3a4 100644 (file)
--- a/src/openal/sound.c
+++ b/src/openal/sound.c
#include "misc.h" // int2host
#include "error.h" // logo
-#include <OpenAL/al.h>
-#include <OpenAL/alc.h>
+#ifdef __APPLE__
+# include <OpenAL/al.h>
+# include <OpenAL/alc.h>
+#else
+# include <AL/al.h>
+# include <AL/alc.h>
+#endif
+
#include <SDL.h> // SDL_BuildAudioCVT SDL_ConvertAudio
#include <assert.h>
#include <stdlib.h> // malloc
ALint h;
openal_snd *snd = (openal_snd*)s;
if (snd != NULL) {
- assert(snd->base.tag = TAG_OAL1);
+ assert(snd->base.tag == TAG_OAL1);
if (context != NULL) {
for (i = 0; i < MAX_CHANNELS; i++) {
alGetSourcei(sources[i], AL_BUFFER, &h);