]> granicus.if.org Git - php/commitdiff
- Fix #51582, Don't assume UINT64_C it's ever available
authorPierre Joye <pajoye@php.net>
Mon, 26 Apr 2010 10:34:53 +0000 (10:34 +0000)
committerPierre Joye <pajoye@php.net>
Mon, 26 Apr 2010 10:34:53 +0000 (10:34 +0000)
NEWS
ext/standard/crypt_sha512.c

diff --git a/NEWS b/NEWS
index 4b4ba474c425fb529d4658d7cf880af0c05536d9..1a8338c7f9fda12912701dcd57624ff9d13f4af5 100644 (file)
--- 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)
index ba9a6391800d8cc1a194bb1a5087c4ebaba76db3..f78ff03981dc2a8711d284b80d0d17c7c89fb0f0 100644 (file)
@@ -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
 {