diff options
Diffstat (limited to 'libao2')
-rw-r--r-- | libao2/ao_coreaudio.c | 3 | ||||
-rw-r--r-- | libao2/ao_oss.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/libao2/ao_coreaudio.c b/libao2/ao_coreaudio.c index d1a93c85e2..ff077b81b6 100644 --- a/libao2/ao_coreaudio.c +++ b/libao2/ao_coreaudio.c @@ -44,6 +44,7 @@ #include <inttypes.h> #include <sys/types.h> #include <unistd.h> +#include <endian.h> #include "config.h" #include "mp_msg.h" @@ -820,7 +821,7 @@ static int OpenSPDIF(void) /* FIXME: If output stream is not native byte-order, we need change endian somewhere. */ /* Although there's no such case reported. */ -#if HAVE_BIGENDIAN +#if BYTE_ORDER == BIG_ENDIAN if (!(ao->stream_format.mFormatFlags & kAudioFormatFlagIsBigEndian)) #else /* tell mplayer that we need a byteswap on AC3 streams, */ diff --git a/libao2/ao_oss.c b/libao2/ao_oss.c index 9290a73380..99f68d6d2c 100644 --- a/libao2/ao_oss.c +++ b/libao2/ao_oss.c @@ -29,6 +29,7 @@ #include <fcntl.h> #include <errno.h> #include <string.h> +#include <endian.h> #include "config.h" #include "mp_msg.h" @@ -320,7 +321,7 @@ ac3_retry: ao_data.format=format; oss_format=format2oss(format); if (oss_format == -1) { -#if HAVE_BIGENDIAN +#if BYTE_ORDER == BIG_ENDIAN oss_format=AFMT_S16_BE; #else oss_format=AFMT_S16_LE; |