DEADSOFTWARE

openal: fix building on linux
authorDeaDDooMER <deaddoomer@deadsoftware.ru>
Tue, 24 Mar 2020 14:22:41 +0000 (17:22 +0300)
committerDeaDDooMER <deaddoomer@deadsoftware.ru>
Tue, 24 Mar 2020 14:22:41 +0000 (17:22 +0300)
src/openal/sound.c

index d046803dc4d0f0018d6039b5e73e3b91726160bb..9dfca1919e106311a6c894bc3a3a0d656b229492 100644 (file)
@@ -6,8 +6,14 @@
 #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