diff options
author | Måns Rullgård <mans@mansr.com> | 2009-07-26 12:20:04 +0000 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2009-07-26 12:20:04 +0000 |
commit | 63613fe615160671b394a232c1a3736319a6a8ec (patch) | |
tree | 4e85211d5388b91b47facca7700512abdd36446d /libavutil | |
parent | 84c04e25196a59694abec3ae17af476994bc5ce8 (diff) | |
download | ffmpeg-63613fe615160671b394a232c1a3736319a6a8ec.tar.gz |
Replace WORDS_BIGENDIAN with HAVE_BIGENDIAN
Originally committed as revision 19508 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil')
-rw-r--r-- | libavutil/bswap.h | 2 | ||||
-rw-r--r-- | libavutil/intreadwrite.h | 4 | ||||
-rw-r--r-- | libavutil/md5.c | 2 | ||||
-rw-r--r-- | libavutil/pixfmt.h | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/libavutil/bswap.h b/libavutil/bswap.h index cf68c43c72..8c7514df13 100644 --- a/libavutil/bswap.h +++ b/libavutil/bswap.h @@ -80,7 +80,7 @@ static inline uint64_t av_const bswap_64(uint64_t x) // be2me ... big-endian to machine-endian // le2me ... little-endian to machine-endian -#ifdef WORDS_BIGENDIAN +#if HAVE_BIGENDIAN #define be2me_16(x) (x) #define be2me_32(x) (x) #define be2me_64(x) (x) diff --git a/libavutil/intreadwrite.h b/libavutil/intreadwrite.h index d46595eea7..18a2b6de44 100644 --- a/libavutil/intreadwrite.h +++ b/libavutil/intreadwrite.h @@ -155,7 +155,7 @@ struct unaligned_16 { uint16_t l; } __attribute__((packed)); ((uint8_t*)(p))[7] = (d)>>56; } while(0) #endif -#ifdef WORDS_BIGENDIAN +#if HAVE_BIGENDIAN # define AV_RN(s, p) AV_RB##s(p) # define AV_WN(s, p, v) AV_WB##s(p, v) #else @@ -189,7 +189,7 @@ struct unaligned_16 { uint16_t l; } __attribute__((packed)); # define AV_WN64(p, v) AV_WN(64, p, v) #endif -#ifdef WORDS_BIGENDIAN +#if HAVE_BIGENDIAN # define AV_RB(s, p) AV_RN(s, p) # define AV_WB(s, p, v) AV_WN(s, p, v) # define AV_RL(s, p) bswap_##s(AV_RN(s, p)) diff --git a/libavutil/md5.c b/libavutil/md5.c index 26d1fb3874..d3e3e9816e 100644 --- a/libavutil/md5.c +++ b/libavutil/md5.c @@ -93,7 +93,7 @@ static void body(uint32_t ABCD[4], uint32_t X[16]){ unsigned int c= ABCD[1]; unsigned int d= ABCD[0]; -#ifdef WORDS_BIGENDIAN +#if HAVE_BIGENDIAN for(i=0; i<16; i++) X[i]= bswap_32(X[i]); #endif diff --git a/libavutil/pixfmt.h b/libavutil/pixfmt.h index 4995a4da19..421bd4b3aa 100644 --- a/libavutil/pixfmt.h +++ b/libavutil/pixfmt.h @@ -126,7 +126,7 @@ enum PixelFormat { PIX_FMT_NB, ///< number of pixel formats, DO NOT USE THIS if you want to link with shared libav* because the number of formats might differ between versions }; -#ifdef WORDS_BIGENDIAN +#if HAVE_BIGENDIAN # define PIX_FMT_NE(be, le) PIX_FMT_##be #else # define PIX_FMT_NE(be, le) PIX_FMT_##le |