* src/configure.in: check for endianess (even while cross-compiling)
[fw/sdcc] / src / pic / glue.c
index e50b255c202ec591b8ddf0ef1df9c1561bb67329..76cf38149683fcdf955b3a8b395438498ab06856 100644 (file)
@@ -29,7 +29,7 @@
 #include "newalloc.h"
 
 
-#ifdef _BIG_ENDIAN
+#ifdef WORDS_BIGENDIAN
   #define _ENDIAN(x)  (3-x)
 #else
   #define _ENDIAN(x)  (x)
@@ -86,7 +86,7 @@ int pic14aopLiteral (value *val, int offset)
 
   /* it is type float */
   fl.f = (float) floatFromVal(val);
-#ifdef _BIG_ENDIAN    
+#ifdef WORDS_BIGENDIAN
   return fl.c[3-offset];
 #else
   return fl.c[offset];