summaryrefslogtreecommitdiff
path: root/ext/standard/crypt_sha512.c
diff options
context:
space:
mode:
authorPierre Joye <pajoye@php.net>2009-12-09 17:40:19 +0000
committerPierre Joye <pajoye@php.net>2009-12-09 17:40:19 +0000
commit8d58b314955397f3d311df8200ce2187620defd2 (patch)
treef7a1e1ae0cd4ede00b4c69e66c86d66b4b14a808 /ext/standard/crypt_sha512.c
parent4d2735007d53b2609eb59de8b1d445481cb09713 (diff)
downloadphp-git-8d58b314955397f3d311df8200ce2187620defd2.tar.gz
- #50334, fix build for platform without endian.h (like solaris)
Diffstat (limited to 'ext/standard/crypt_sha512.c')
-rw-r--r--ext/standard/crypt_sha512.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/standard/crypt_sha512.c b/ext/standard/crypt_sha512.c
index 065721a5ef..cdf8851684 100644
--- a/ext/standard/crypt_sha512.c
+++ b/ext/standard/crypt_sha512.c
@@ -3,7 +3,6 @@
/* Windows VC++ port by Pierre Joye <pierre@php.net> */
#ifndef PHP_WIN32
-# include <endian.h>
# include "php.h"
# include "php_main.h"
#endif
@@ -66,7 +65,7 @@ struct sha512_ctx
};
-#if PHP_WIN32 || (__BYTE_ORDER == __LITTLE_ENDIAN)
+#if PHP_WIN32 || (!defined(WORDS_BIGENDIAN))
# define SWAP(n) \
(((n) << 56) \
| (((n) & 0xff00) << 40) \