tony2001 Tue Sep 4 18:46:08 2007 UTC Modified files: /ZendEngine2 zend_strtod.c /php-src/ext/hash hash_tiger.c /php-src/ext/date/lib parse_tz.c Log: detect endianness in compile time when using Apple's GCC (fixes universal binary build) http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_strtod.c?r1=1.34&r2=1.35&diff_format=u Index: ZendEngine2/zend_strtod.c diff -u ZendEngine2/zend_strtod.c:1.34 ZendEngine2/zend_strtod.c:1.35 --- ZendEngine2/zend_strtod.c:1.34 Wed Jul 11 11:19:58 2007 +++ ZendEngine2/zend_strtod.c Tue Sep 4 18:46:07 2007 @@ -89,7 +89,7 @@ * directly -- and assumed always to succeed. */ -/* $Id: zend_strtod.c,v 1.34 2007/07/11 11:19:58 tony2001 Exp $ */ +/* $Id: zend_strtod.c,v 1.35 2007/09/04 18:46:07 tony2001 Exp $ */ #include <zend.h> #include <unicode/utypes.h> @@ -138,6 +138,16 @@ # endif #endif +#if (defined(__APPLE__) || defined(__APPLE_CC__)) && (defined(__BIG_ENDIAN__) || defined(__LITTLE_ENDIAN__)) +# if defined(__LITTLE_ENDIAN__) +# undef WORDS_BIGENDIAN +# else +# if defined(__BIG_ENDIAN__) +# define WORDS_BIGENDIAN +# endif +# endif +#endif + #ifdef WORDS_BIGENDIAN #define IEEE_BIG_ENDIAN #else http://cvs.php.net/viewvc.cgi/php-src/ext/hash/hash_tiger.c?r1=1.8&r2=1.9&diff_format=u Index: php-src/ext/hash/hash_tiger.c diff -u php-src/ext/hash/hash_tiger.c:1.8 php-src/ext/hash/hash_tiger.c:1.9 --- php-src/ext/hash/hash_tiger.c:1.8 Mon Jan 8 22:29:52 2007 +++ php-src/ext/hash/hash_tiger.c Tue Sep 4 18:46:08 2007 @@ -17,12 +17,22 @@ +----------------------------------------------------------------------+ */ -/* $Id: hash_tiger.c,v 1.8 2007/01/08 22:29:52 nlopess Exp $ */ +/* $Id: hash_tiger.c,v 1.9 2007/09/04 18:46:08 tony2001 Exp $ */ #include "php_hash.h" #include "php_hash_tiger.h" #include "php_hash_tiger_tables.h" +#if (defined(__APPLE__) || defined(__APPLE_CC__)) && (defined(__BIG_ENDIAN__) || defined(__LITTLE_ENDIAN__)) +# if defined(__LITTLE_ENDIAN__) +# undef WORDS_BIGENDIAN +# else +# if defined(__BIG_ENDIAN__) +# define WORDS_BIGENDIAN +# endif +# endif +#endif + /* {{{ */ #define save_abc \ aa = a; \ http://cvs.php.net/viewvc.cgi/php-src/ext/date/lib/parse_tz.c?r1=1.33&r2=1.34&diff_format=u Index: php-src/ext/date/lib/parse_tz.c diff -u php-src/ext/date/lib/parse_tz.c:1.33 php-src/ext/date/lib/parse_tz.c:1.34 --- php-src/ext/date/lib/parse_tz.c:1.33 Mon Jan 1 09:29:22 2007 +++ php-src/ext/date/lib/parse_tz.c Tue Sep 4 18:46:08 2007 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: parse_tz.c,v 1.33 2007/01/01 09:29:22 sebastian Exp $ */ +/* $Id: parse_tz.c,v 1.34 2007/09/04 18:46:08 tony2001 Exp $ */ #include "timelib.h" @@ -29,6 +29,16 @@ #endif #include "timezonedb.h" +#if (defined(__APPLE__) || defined(__APPLE_CC__)) && (defined(__BIG_ENDIAN__) || defined(__LITTLE_ENDIAN__)) +# if defined(__LITTLE_ENDIAN__) +# undef WORDS_BIGENDIAN +# else +# if defined(__BIG_ENDIAN__) +# define WORDS_BIGENDIAN +# endif +# endif +#endif + #ifdef WORDS_BIGENDIAN #define timelib_conv_int(l) (l) #else
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php