changeset 28339:69346a3311e9

WORDS_BIGENDIAN is defined/undefined, not 0/1.
author diego
date Mon, 26 Jan 2009 09:56:27 +0000
parents f375e517f6f6
children b0af9b4b5015
files libaf/af_format.c libaf/af_format.h libmpdemux/demux_xmms.c libmpdemux/demuxer.h mp3lib/decod386.c
diffstat 5 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/libaf/af_format.c	Mon Jan 26 09:55:59 2009 +0000
+++ b/libaf/af_format.c	Mon Jan 26 09:56:27 2009 +0000
@@ -332,7 +332,7 @@
 };
 
 static inline uint32_t load24bit(void* data, int pos) {
-#if WORDS_BIGENDIAN
+#ifdef WORDS_BIGENDIAN
   return (((uint32_t)((uint8_t*)data)[3*pos])<<24) |
 	 (((uint32_t)((uint8_t*)data)[3*pos+1])<<16) |
 	 (((uint32_t)((uint8_t*)data)[3*pos+2])<<8);
@@ -344,7 +344,7 @@
 }
 
 static inline void store24bit(void* data, int pos, uint32_t expanded_value) {
-#if WORDS_BIGENDIAN
+#ifdef WORDS_BIGENDIAN
       ((uint8_t*)data)[3*pos]=expanded_value>>24;
       ((uint8_t*)data)[3*pos+1]=expanded_value>>16;
       ((uint8_t*)data)[3*pos+2]=expanded_value>>8;
--- a/libaf/af_format.h	Mon Jan 26 09:55:59 2009 +0000
+++ b/libaf/af_format.h	Mon Jan 26 09:56:27 2009 +0000
@@ -30,7 +30,7 @@
 #define AF_FORMAT_LE		(1<<0) // Little Endian
 #define AF_FORMAT_END_MASK	(1<<0)
 
-#if WORDS_BIGENDIAN	       	// Native endian of cpu
+#ifdef WORDS_BIGENDIAN	       	// Native endian of cpu
 #define	AF_FORMAT_NE		AF_FORMAT_BE
 #else
 #define	AF_FORMAT_NE		AF_FORMAT_LE
--- a/libmpdemux/demux_xmms.c	Mon Jan 26 09:55:59 2009 +0000
+++ b/libmpdemux/demux_xmms.c	Mon Jan 26 09:56:27 2009 +0000
@@ -101,7 +101,7 @@
             xmms_afmt=AF_FORMAT_U16_LE;
             break;
         case FMT_U16_NE:
-#if WORDS_BIGENDIAN
+#ifdef WORDS_BIGENDIAN
             xmms_afmt=AF_FORMAT_U16_BE;
 #else
             xmms_afmt=AF_FORMAT_U16_LE;
--- a/libmpdemux/demuxer.h	Mon Jan 26 09:55:59 2009 +0000
+++ b/libmpdemux/demuxer.h	Mon Jan 26 09:56:27 2009 +0000
@@ -367,7 +367,7 @@
 static inline int avi_stream_id(unsigned int id){
   unsigned char *p=(unsigned char *)&id;
   unsigned char a,b;
-#if WORDS_BIGENDIAN
+#ifdef WORDS_BIGENDIAN
   a=p[3]-'0'; b=p[2]-'0';
 #else
   a=p[0]-'0'; b=p[1]-'0';
--- a/mp3lib/decod386.c	Mon Jan 26 09:55:59 2009 +0000
+++ b/mp3lib/decod386.c	Mon Jan 26 09:56:27 2009 +0000
@@ -54,7 +54,7 @@
  * layouts of double floating point values an all cpu architectures.  If
  * it doesn't work for you, just enable the "old WRITE_SAMPLE" macro.
  */
-#if WORDS_BIGENDIAN
+#ifdef WORDS_BIGENDIAN
 #define	MANTISSA_OFFSET	1
 #else
 #define	MANTISSA_OFFSET	0