From: Pierre Joye Date: Mon, 26 Apr 2010 10:34:53 +0000 (+0000) Subject: - Fix #51582, Don't assume UINT64_C it's ever available X-Git-Tag: php-5.3.3RC1~264 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0f88851e92ee077dc1ec27ee936b8317af1797a5;p=php - Fix #51582, Don't assume UINT64_C it's ever available --- diff --git a/NEWS b/NEWS index 4b4ba474c4..1a8338c7f9 100644 --- a/NEWS +++ b/NEWS @@ -41,6 +41,8 @@ PHP NEWS (ejsmont dot artur at gmail dot com) - Fixed bug #51577 (Uninitialized memory reference with oci_bind_array_by_name) (Oracle Corp.) +- Fixed bug #51582 (Don't assume UINT64_C it's ever available). + (reidrac at usebox dot net, Pierre) - Fixed bug #51445 (var_dump() invalid/slow *RECURSION* detection). (Felipe) - Fixed bug #51435 (Missing ifdefs / logic bug in crypt code cause compile errors). (Felipe) 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 {