diff options
-rw-r--r-- | Zend/zend_strtod.c | 10 | ||||
-rw-r--r-- | ext/date/lib/parse_tz.c | 10 | ||||
-rw-r--r-- | ext/hash/hash_tiger.c | 10 |
3 files changed, 30 insertions, 0 deletions
diff --git a/Zend/zend_strtod.c b/Zend/zend_strtod.c index 49e14a60b2..bf0c70d7df 100644 --- a/Zend/zend_strtod.c +++ b/Zend/zend_strtod.c @@ -136,6 +136,16 @@ typedef unsigned long int uint32_t; # 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 diff --git a/ext/date/lib/parse_tz.c b/ext/date/lib/parse_tz.c index 1d2ff86e3f..d55553bced 100644 --- a/ext/date/lib/parse_tz.c +++ b/ext/date/lib/parse_tz.c @@ -33,6 +33,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 diff --git a/ext/hash/hash_tiger.c b/ext/hash/hash_tiger.c index 6e3e7dc2b7..5309cb7182 100644 --- a/ext/hash/hash_tiger.c +++ b/ext/hash/hash_tiger.c @@ -23,6 +23,16 @@ #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; \ |