* src/configure.in: check for endianess (even while cross-compiling)
[fw/sdcc] / src / z80 / gen.c
index 7e2f401bc0d6bb88be453ac841322a716071786c..b5f0afc975a66fb4c0b35702e14f32b4d27bac53 100644 (file)
 #define STRCASECMP strcasecmp
 #endif
 
-#ifdef HAVE_SYS_ISA_DEFS_H
-#include <sys/isa_defs.h>
-#endif
-
 #include "z80.h"
 #include "SDCCglobl.h"
 #include "SDCCpeeph.h"
@@ -1144,7 +1140,7 @@ aopGetLitWordLong (asmop * aop, int offset, bool with_hash)
             /* it is type float */
             fl.f = (float) floatFromVal (val);
 
-#ifdef _BIG_ENDIAN
+#ifdef WORDS_BIGENDIAN
             i = fl.c[3-offset] | (fl.c[3-offset-1]<<8);
 #else
             i = fl.c[offset] | (fl.c[offset+1]<<8);