summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorPierre Joye <pajoye@php.net>2010-04-26 10:34:53 +0000
committerPierre Joye <pajoye@php.net>2010-04-26 10:34:53 +0000
commit0f88851e92ee077dc1ec27ee936b8317af1797a5 (patch)
tree3617520c7e0a1270f0522fae9c3d60dcd0205838 /ext
parent72ede78ebb3d30f325681db3e9db2efdb103304c (diff)
downloadphp-git-0f88851e92ee077dc1ec27ee936b8317af1797a5.tar.gz
- Fix #51582, Don't assume UINT64_C it's ever available
Diffstat (limited to 'ext')
-rw-r--r--ext/standard/crypt_sha512.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/standard/crypt_sha512.c b/ext/standard/crypt_sha512.c
index ba9a639180..f78ff03981 100644
--- a/ext/standard/crypt_sha512.c
+++ b/ext/standard/crypt_sha512.c
@@ -53,6 +53,11 @@ extern char * __php_stpncpy(char *dst, const char *src, size_t len);
# define MAX(a, b) (((a) > (b)) ? (a) : (b))
#endif
+/* See #51582 */
+#ifndef UINT64_C
+# define UINT64_C(value) __CONCAT(value, ULL)
+#endif
+
/* Structure to save state of computation between the single steps. */
struct sha512_ctx
{