Index: Zend/zend_strtod.c =================================================================== RCS file: /repository/ZendEngine2/zend_strtod.c,v retrieving revision 1.17.2.2.2.12 diff -u -p -d -a -r1.17.2.2.2.12 zend_strtod.c --- Zend/zend_strtod.c 23 Jul 2007 16:17:10 -0000 1.17.2.2.2.12 +++ Zend/zend_strtod.c 9 Aug 2007 09:04:36 -0000 @@ -136,6 +136,13 @@ typedef unsigned long int uint32_t; # endif #endif +/* support for MacOSX universal binaries */ +#if (defined(__APPLE__) || defined(__APPLE_CC__)) && (defined(__BIG_ENDIAN__) || defined(__LITTLE_ENDIAN__)) +# if defined(__LITTLE_ENDIAN__) +# undef WORDS_BIGENDIAN +# endif +#endif + #ifdef WORDS_BIGENDIAN #define IEEE_BIG_ENDIAN #else Index: ext/hash/hash_tiger.c =================================================================== RCS file: /repository/php-src/ext/hash/hash_tiger.c,v retrieving revision 1.4.2.4.2.2 diff -u -p -d -a -r1.4.2.4.2.2 hash_tiger.c --- ext/hash/hash_tiger.c 8 Jan 2007 22:29:25 -0000 1.4.2.4.2.2 +++ ext/hash/hash_tiger.c 9 Aug 2007 09:04:36 -0000 @@ -23,6 +23,13 @@ #include "php_hash_tiger.h" #include "php_hash_tiger_tables.h" +/* support for MacOSX universal binaries */ +#if (defined(__APPLE__) || defined(__APPLE_CC__)) && (defined(__BIG_ENDIAN__) || defined(__LITTLE_ENDIAN__)) +# if defined(__LITTLE_ENDIAN__) +# undef WORDS_BIGENDIAN +# endif +#endif + /* {{{ */ #define save_abc \ aa = a; \ Index: ext/date/lib/parse_tz.c =================================================================== RCS file: /repository/php-src/ext/date/lib/parse_tz.c,v retrieving revision 1.20.2.6.2.12 diff -u -p -d -a -r1.20.2.6.2.12 parse_tz.c --- ext/date/lib/parse_tz.c 25 Jan 2007 14:38:45 -0000 1.20.2.6.2.12 +++ ext/date/lib/parse_tz.c 9 Aug 2007 09:04:36 -0000 @@ -33,6 +33,13 @@ #endif #include "timezonedb.h" +/* support for MacOSX universal binaries */ +#if (defined(__APPLE__) || defined(__APPLE_CC__)) && (defined(__BIG_ENDIAN__) || defined(__LITTLE_ENDIAN__)) +# if defined(__LITTLE_ENDIAN__) +# undef WORDS_BIGENDIAN +# endif +#endif + #ifdef WORDS_BIGENDIAN #define timelib_conv_int(l) (l) #else