summaryrefslogtreecommitdiffstats
path: root/libao2
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-10-23 18:26:04 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-10-23 18:26:04 +0000
commit941fa2881cc96c8b57b75ef850fa40b370a572b6 (patch)
tree5a636971aeec2e24575f472e22b9a7d7c0d2c8b7 /libao2
parente0794ed34d6307ec7b9c4479310aeb2b35961718 (diff)
downloadmpv-941fa2881cc96c8b57b75ef850fa40b370a572b6.tar.bz2
mpv-941fa2881cc96c8b57b75ef850fa40b370a572b6.tar.xz
FreeBSD compilation fix
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13742 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libao2')
-rw-r--r--libao2/afmt.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/libao2/afmt.h b/libao2/afmt.h
index 4b681df486..8a36892551 100644
--- a/libao2/afmt.h
+++ b/libao2/afmt.h
@@ -34,10 +34,24 @@
/* 24 bit formats from the linux kernel */
#ifndef AFMT_S24_LE
+
+// FreeBSD fix...
+#if AFMT_S32_LE == 0x1000
+
+#define AFMT_S24_LE 0x00010000
+#define AFMT_S24_BE 0x00020000
+#define AFMT_U24_LE 0x00040000
+#define AFMT_U24_BE 0x00080000
+
+#else
+
#define AFMT_S24_LE 0x00000800
#define AFMT_S24_BE 0x00001000
#define AFMT_U24_LE 0x00002000
#define AFMT_U24_BE 0x00004000
+
+#endif
+
#endif
/* 32 bit formats from the linux kernel */