summaryrefslogtreecommitdiffstats
path: root/libmpcodecs/img_format.h
diff options
context:
space:
mode:
Diffstat (limited to 'libmpcodecs/img_format.h')
-rw-r--r--libmpcodecs/img_format.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/libmpcodecs/img_format.h b/libmpcodecs/img_format.h
index 4200282f98..a0a1c453c7 100644
--- a/libmpcodecs/img_format.h
+++ b/libmpcodecs/img_format.h
@@ -19,6 +19,7 @@
#ifndef MPLAYER_IMG_FORMAT_H
#define MPLAYER_IMG_FORMAT_H
+#include <endian.h>
#include "config.h"
/* RGB/BGR Formats */
@@ -51,7 +52,7 @@
#define IMGFMT_GBRP (('G'<<24)|('B'<<16)|('R'<<8)|24)
-#if HAVE_BIGENDIAN
+#if BYTE_ORDER == BIG_ENDIAN
#define IMGFMT_ABGR IMGFMT_RGB32
#define IMGFMT_BGRA (IMGFMT_RGB32|64)
#define IMGFMT_ARGB IMGFMT_BGR32
@@ -139,7 +140,7 @@
#define IMGFMT_420P10_BE 0x34323052
#define IMGFMT_420P9_LE 0x53303234
#define IMGFMT_420P9_BE 0x34323053
-#if HAVE_BIGENDIAN
+#if BYTE_ORDER == BIG_ENDIAN
#define IMGFMT_444P16 IMGFMT_444P16_BE
#define IMGFMT_444P10 IMGFMT_444P10_BE
#define IMGFMT_444P9 IMGFMT_444P9_BE