# HG changeset patch # User reimar # Date 1098555964 0 # Node ID f7d95487255b54e66ead9a41d4f1ca1de2eb2e5e # Parent 7b459982a1a8119b05c2e172b0d2ddb520787221 FreeBSD compilation fix diff -r 7b459982a1a8 -r f7d95487255b libao2/afmt.h --- a/libao2/afmt.h Sat Oct 23 15:48:31 2004 +0000 +++ b/libao2/afmt.h Sat Oct 23 18:26:04 2004 +0000 @@ -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 */