summaryrefslogtreecommitdiffstats
path: root/libmpdemux
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-07-26 19:53:00 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-07-26 19:53:00 +0000
commite5751ced4f16fe75f835b70e37ecf48a2032506b (patch)
tree38684770a130fa5d209776ef7413c22b7d2cec4b /libmpdemux
parentc242fdbfd9242873aae85be9f841f1f3caf9633f (diff)
downloadmpv-e5751ced4f16fe75f835b70e37ecf48a2032506b.tar.bz2
mpv-e5751ced4f16fe75f835b70e37ecf48a2032506b.tar.xz
Replace WORDS_BIGENDIAN by HAVE_BIGENDIAN in all internal code.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29443 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux')
-rw-r--r--libmpdemux/asf.h6
-rw-r--r--libmpdemux/aviheader.h4
-rw-r--r--libmpdemux/demux_xmms.c2
-rw-r--r--libmpdemux/demuxer.h2
-rw-r--r--libmpdemux/ms_hdr.h2
5 files changed, 8 insertions, 8 deletions
diff --git a/libmpdemux/asf.h b/libmpdemux/asf.h
index b8cd4374ff..a1e29a942f 100644
--- a/libmpdemux/asf.h
+++ b/libmpdemux/asf.h
@@ -19,7 +19,7 @@
#ifndef MPLAYER_ASF_H
#define MPLAYER_ASF_H
-//#include "config.h" /* for WORDS_BIGENDIAN */
+//#include "config.h" /* for HAVE_BIGENDIAN */
#include <inttypes.h>
#include "libavutil/common.h"
#include "mpbswap.h"
@@ -105,7 +105,7 @@ typedef struct __attribute__((packed)) {
} ASF_stream_chunck_t;
// Definition of the stream type
-#ifdef WORDS_BIGENDIAN
+#if HAVE_BIGENDIAN
#define ASF_STREAMING_CLEAR 0x2443 // $C
#define ASF_STREAMING_DATA 0x2444 // $D
#define ASF_STREAMING_END_TRANS 0x2445 // $E
@@ -140,7 +140,7 @@ typedef struct {
* Some macros to swap little endian structures read from an ASF file
* into machine endian format
*/
-#ifdef WORDS_BIGENDIAN
+#if HAVE_BIGENDIAN
#define le2me_ASF_obj_header_t(h) { \
(h)->size = le2me_64((h)->size); \
}
diff --git a/libmpdemux/aviheader.h b/libmpdemux/aviheader.h
index 0dd915fc5d..a06ef711ac 100644
--- a/libmpdemux/aviheader.h
+++ b/libmpdemux/aviheader.h
@@ -21,7 +21,7 @@
#include <sys/types.h>
#include <stdint.h>
-#include "config.h" /* get correct definition of WORDS_BIGENDIAN */
+#include "config.h" /* get correct definition of HAVE_BIGENDIAN */
#include "libavutil/common.h"
#include "mpbswap.h"
@@ -227,7 +227,7 @@ typedef enum {
* Some macros to swap little endian structures read from an AVI file
* into machine endian format
*/
-#ifdef WORDS_BIGENDIAN
+#if HAVE_BIGENDIAN
#define le2me_MainAVIHeader(h) { \
(h)->dwMicroSecPerFrame = le2me_32((h)->dwMicroSecPerFrame); \
(h)->dwMaxBytesPerSec = le2me_32((h)->dwMaxBytesPerSec); \
diff --git a/libmpdemux/demux_xmms.c b/libmpdemux/demux_xmms.c
index 9263621a0b..8edbc2fe28 100644
--- a/libmpdemux/demux_xmms.c
+++ b/libmpdemux/demux_xmms.c
@@ -101,7 +101,7 @@ static int disk_open(AFormat fmt, int rate, int nch) {
xmms_afmt=AF_FORMAT_U16_LE;
break;
case FMT_U16_NE:
-#ifdef WORDS_BIGENDIAN
+#if HAVE_BIGENDIAN
xmms_afmt=AF_FORMAT_U16_BE;
#else
xmms_afmt=AF_FORMAT_U16_LE;
diff --git a/libmpdemux/demuxer.h b/libmpdemux/demuxer.h
index 8035fd24e8..77b20e1bcf 100644
--- a/libmpdemux/demuxer.h
+++ b/libmpdemux/demuxer.h
@@ -384,7 +384,7 @@ stream_t* new_ds_stream(demux_stream_t *ds);
static inline int avi_stream_id(unsigned int id){
unsigned char *p=(unsigned char *)&id;
unsigned char a,b;
-#ifdef WORDS_BIGENDIAN
+#if HAVE_BIGENDIAN
a=p[3]-'0'; b=p[2]-'0';
#else
a=p[0]-'0'; b=p[1]-'0';
diff --git a/libmpdemux/ms_hdr.h b/libmpdemux/ms_hdr.h
index 87d0bf6e58..aaeffa6ef3 100644
--- a/libmpdemux/ms_hdr.h
+++ b/libmpdemux/ms_hdr.h
@@ -68,7 +68,7 @@ typedef struct {
#endif
#ifndef le2me_BITMAPINFOHEADER
-#ifdef WORDS_BIGENDIAN
+#if HAVE_BIGENDIAN
#define le2me_BITMAPINFOHEADER(h) { \
(h)->biSize = le2me_32((h)->biSize); \
(h)->biWidth = le2me_32((h)->biWidth); \