diff libaf/af_format.c @ 28339:69346a3311e9

WORDS_BIGENDIAN is defined/undefined, not 0/1.
author diego
date Mon, 26 Jan 2009 09:56:27 +0000
parents 34b7297904ac
children 8c706ce21c6f
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;