summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0102df0)
raw | patch | inline | side by side (parent: 0102df0)
author | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Tue, 24 Mar 2020 14:22:41 +0000 (17:22 +0300) | ||
committer | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Tue, 24 Mar 2020 14:22:41 +0000 (17:22 +0300) |
src/openal/sound.c | patch | blob | history |
diff --git a/src/openal/sound.c b/src/openal/sound.c
index d046803dc4d0f0018d6039b5e73e3b91726160bb..9dfca1919e106311a6c894bc3a3a0d656b229492 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