changeset 758:22a58fc2125d libavutil

Replace WORDS_BIGENDIAN with HAVE_BIGENDIAN
author mru
date Sun, 26 Jul 2009 12:20:04 +0000
parents 7562cfd794da
children fd032514a113
files bswap.h intreadwrite.h md5.c pixfmt.h
diffstat 4 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/bswap.h	Fri Jul 17 08:21:43 2009 +0000
+++ b/bswap.h	Sun Jul 26 12:20:04 2009 +0000
@@ -80,7 +80,7 @@
 // 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)
--- a/intreadwrite.h	Fri Jul 17 08:21:43 2009 +0000
+++ b/intreadwrite.h	Sun Jul 26 12:20:04 2009 +0000
@@ -155,7 +155,7 @@
                     ((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 @@
 #   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))
--- a/md5.c	Fri Jul 17 08:21:43 2009 +0000
+++ b/md5.c	Sun Jul 26 12:20:04 2009 +0000
@@ -93,7 +93,7 @@
     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
--- a/pixfmt.h	Fri Jul 17 08:21:43 2009 +0000
+++ b/pixfmt.h	Sun Jul 26 12:20:04 2009 +0000
@@ -126,7 +126,7 @@
     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