From e36af71ea57b06119c27e0f81f91a70f9164f646 Mon Sep 17 00:00:00 2001 From: borutr Date: Wed, 27 Jun 2007 17:51:00 +0000 Subject: [PATCH] * local/mirror-doors.mk: create Mac OS X unified binaries git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4866 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- sdccconf_in.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/sdccconf_in.h b/sdccconf_in.h index bded377b..e5a47a9e 100644 --- a/sdccconf_in.h +++ b/sdccconf_in.h @@ -54,20 +54,22 @@ #undef TYPE_UWORD #undef TYPE_UDWORD -/* find out the endianess of host machine */ +/* + * find out the endianess of host machine + * in order to be able to make Mac OS X unified binaries + */ #if __BIG_ENDIAN__ || _BIG_ENDIAN /* 1) trust the compiler */ # define WORDS_BIGENDIAN 1 #elif __LITTLE_ENDIAN__ -/* just in case ... */ -#undef WORDS_BIGENDIAN +/* do nothing */ #elif (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) /* 2) trust the header files */ # if BYTE_ORDER == BIG_ENDIAN # define WORDS_BIGENDIAN 1 # endif #else -/* 3) assume that host machine has the same endianess as the build machine */ +/* 3) trust the configure; this actually doesn't work for unified Mac OS X binaries :-( */ # undef BUILD_WORDS_BIGENDIAN # if (defined BUILD_WORDS_BIGENDIAN && BUILD_WORDS_BIGENDIAN) # define WORDS_BIGENDIAN 1 -- 2.39.5