diff options
Diffstat (limited to 'libao2/ao_coreaudio.c')
-rw-r--r-- | libao2/ao_coreaudio.c | 3 |
1 files changed, 2 insertions, 1 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, */ |