changeset 29399:d62dcefa6fcc

Set both HAVE_BIGENDIAN and WORDS_BIGENDIAN. Both definitions are used in different places.
author diego
date Sun, 26 Jul 2009 17:43:06 +0000
parents 039160a7054b
children 0446f018f9fc
files configure
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Sun Jul 26 14:40:05 2009 +0000
+++ b/configure	Sun Jul 26 17:43:06 2009 +0000
@@ -2361,10 +2361,12 @@
 fi
 if test "$_big_endian" = yes ; then
   _byte_order='big-endian'
-  def_words_endian='#define HAVE_BIGENDIAN 1'
+  def_words_endian='#define WORDS_BIGENDIAN 1'
+  def_bigendian='#define HAVE_BIGENDIAN 1'
 else
   _byte_order='little-endian'
-  def_words_endian='#define HAVE_BIGENDIAN 0'
+  def_words_endian='#undef WORDS_BIGENDIAN'
+  def_bigendian='#define HAVE_BIGENDIAN 0'
 fi
 echores "$_byte_order"
 
@@ -8582,6 +8584,7 @@
 /* CPU stuff */
 #define __CPU__ $iproc
 $def_words_endian
+$def_bigendian
 $(ff_config_enable "$_arch_all" "$_arch" "ARCH")
 $(ff_config_enable "$_cpuexts_all" "$_cpuexts" "HAVE")