summaryrefslogtreecommitdiffstats
path: root/libaf/af_format.h
diff options
context:
space:
mode:
Diffstat (limited to 'libaf/af_format.h')
-rw-r--r--libaf/af_format.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/libaf/af_format.h b/libaf/af_format.h
index 5f194c1365..73e4c88c3e 100644
--- a/libaf/af_format.h
+++ b/libaf/af_format.h
@@ -23,6 +23,7 @@
#ifndef MPLAYER_AF_FORMAT_H
#define MPLAYER_AF_FORMAT_H
+#include <endian.h>
#include "config.h"
// Endianness
@@ -30,7 +31,7 @@
#define AF_FORMAT_LE (1<<0) // Little Endian
#define AF_FORMAT_END_MASK (1<<0)
-#if HAVE_BIGENDIAN // Native endian of cpu
+#if BYTE_ORDER == BIG_ENDIAN
#define AF_FORMAT_NE AF_FORMAT_BE
#else
#define AF_FORMAT_NE AF_FORMAT_LE
@@ -86,7 +87,7 @@
#define AF_FORMAT_AC3_LE (AF_FORMAT_AC3|AF_FORMAT_16BIT|AF_FORMAT_LE)
#define AF_FORMAT_AC3_BE (AF_FORMAT_AC3|AF_FORMAT_16BIT|AF_FORMAT_BE)
-#if HAVE_BIGENDIAN
+#if BYTE_ORDER == BIG_ENDIAN
#define AF_FORMAT_U16_NE AF_FORMAT_U16_BE
#define AF_FORMAT_S16_NE AF_FORMAT_S16_BE
#define AF_FORMAT_U24_NE AF_FORMAT_U24_BE