summaryrefslogtreecommitdiff
path: root/ext/standard/crypt_sha256.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/crypt_sha256.c')
-rw-r--r--ext/standard/crypt_sha256.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/standard/crypt_sha256.c b/ext/standard/crypt_sha256.c
index 447071b39c..dc2c4ce20c 100644
--- a/ext/standard/crypt_sha256.c
+++ b/ext/standard/crypt_sha256.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
@@ -75,7 +74,7 @@ struct sha256_ctx {
char buffer[128]; /* NB: always correctly aligned for uint32_t. */
};
-#if PHP_WIN32 || (__BYTE_ORDER == __LITTLE_ENDIAN)
+#if PHP_WIN32 || (!defined(WORDS_BIGENDIAN))
# define SWAP(n) \
(((n) << 24) | (((n) & 0xff00) << 8) | (((n) >> 8) & 0xff00) | ((n) >> 24))
#else