From cf658394a0ab9211dab1931835b9f4798755a45d Mon Sep 17 00:00:00 2001 From: sdcc-builder Date: Tue, 7 Aug 2007 11:55:45 +0000 Subject: [PATCH] * sdccconf_in.h: update the endian test so that SPARC Solaris does not throw syntax errors git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4896 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- ChangeLog | 5 +++++ sdccconf_in.h | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 0b01b2ee..03f8e936 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-08-07 Erik Petrich + + * sdccconf_in.h: update the endian test so that SPARC Solaris + does not throw syntax errors + 2007-08-06 Borut Razem * doc/sdccman.lyx: removed two index entries which prevented the diff --git a/sdccconf_in.h b/sdccconf_in.h index e5a47a9e..cd08da4a 100644 --- a/sdccconf_in.h +++ b/sdccconf_in.h @@ -58,7 +58,10 @@ * find out the endianess of host machine * in order to be able to make Mac OS X unified binaries */ -#if __BIG_ENDIAN__ || _BIG_ENDIAN +/* This is tricky since these might be defined with a blank replacement list */ +/* such as on SPARC Solaris. However, configure gets it right, so it's ok */ +/* that (_BIG_ENDIAN+0) is false, even though it is defined. */ +#if (__BIG_ENDIAN__+0) || (_BIG_ENDIAN+0) /* 1) trust the compiler */ # define WORDS_BIGENDIAN 1 #elif __LITTLE_ENDIAN__ -- 2.30.2