summaryrefslogtreecommitdiffstats
path: root/libao2/ao_openal.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-12-10 14:07:08 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-12-10 14:07:08 +0000
commit7d4e8a36bbcac432c41780f0a753ee5723312124 (patch)
treea1160d56ac8f4935677ee24169b52b25e586aaca /libao2/ao_openal.c
parent7831dacd5d07fe84114e9fe37df63bb854eff168 (diff)
downloadmpv-7d4e8a36bbcac432c41780f0a753ee5723312124.tar.bz2
mpv-7d4e8a36bbcac432c41780f0a753ee5723312124.tar.xz
Support OpenAL headers in OpenAL/ instead of AL/ and OpenAL on MacOSX in general.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21572 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libao2/ao_openal.c')
-rw-r--r--libao2/ao_openal.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/libao2/ao_openal.c b/libao2/ao_openal.c
index 62be52c322..bc2219c1ea 100644
--- a/libao2/ao_openal.c
+++ b/libao2/ao_openal.c
@@ -7,13 +7,19 @@
* Copyleft 2006 by Reimar Döffinger (Reimar.Doeffinger@stud.uni-karlsruhe.de)
*/
+#include "config.h"
+
#include <stdlib.h>
#include <stdio.h>
#include <inttypes.h>
+#ifdef OPENAL_AL_H
+#include <OpenAL/alc.h>
+#include <OpenAL/al.h>
+#else
#include <AL/alc.h>
#include <AL/al.h>
+#endif
-#include "config.h"
#include "mp_msg.h"
#include "help_mp.h"