+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
* 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__