diff options
Diffstat (limited to 'ext/hash')
-rw-r--r-- | ext/hash/hash_tiger.c | 10 |
1 files changed, 10 insertions, 0 deletions
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; \ |