* sdccconf_in.h: update the endian test so that SPARC Solaris
authorsdcc-builder <sdcc-builder@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Tue, 7 Aug 2007 11:55:45 +0000 (11:55 +0000)
committersdcc-builder <sdcc-builder@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Tue, 7 Aug 2007 11:55:45 +0000 (11:55 +0000)
  does not throw syntax errors

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4896 4a8a32a2-be11-0410-ad9d-d568d2c75423

ChangeLog
sdccconf_in.h

index 0b01b2eea623b12153bd7214fbcde9a87cba99af..03f8e93607e601b5fb7dd1ed2f23bfa521dad046 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-08-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
+
+       * sdccconf_in.h: update the endian test so that SPARC Solaris
+         does not throw syntax errors
+
 2007-08-06 Borut Razem <borut.razem AT siol.net>
 
        * doc/sdccman.lyx: removed two index entries which prevented the
index e5a47a9e49046b9acb5127e4810f7f9933d92d20..cd08da4a9ce3afb0e5ee28ad79705a445f6736cf 100644 (file)
  * 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__