X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=sdccconf_in.h;h=cd08da4a9ce3afb0e5ee28ad79705a445f6736cf;hb=bb226788dab3832b0ec0cda70874ce3fce4eebc6;hp=e5a47a9e49046b9acb5127e4810f7f9933d92d20;hpb=e36af71ea57b06119c27e0f81f91a70f9164f646;p=fw%2Fsdcc 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__