diff options
author | David Soria Parra <dsp@php.net> | 2010-01-11 16:22:12 +0000 |
---|---|---|
committer | David Soria Parra <dsp@php.net> | 2010-01-11 16:22:12 +0000 |
commit | 33fc7d77d7d0f7c85025b8aa82d62b154c4bc71f (patch) | |
tree | dbc6c6da9f104e8ba111c4e67880202892cc7a30 /ext/standard/crypt_sha512.c | |
parent | 9b8d026d86341829e1f18cfdc581ab1ab8655ce2 (diff) | |
download | php-git-33fc7d77d7d0f7c85025b8aa82d62b154c4bc71f.tar.gz |
Fixes #50496. Drop stdbool.h dependency as it requires _STDC_C99 set on some systems.
Diffstat (limited to 'ext/standard/crypt_sha512.c')
-rw-r--r-- | ext/standard/crypt_sha512.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/ext/standard/crypt_sha512.c b/ext/standard/crypt_sha512.c index f339dbb810..22f7e7fa79 100644 --- a/ext/standard/crypt_sha512.c +++ b/ext/standard/crypt_sha512.c @@ -11,7 +11,6 @@ #include <limits.h> #ifdef PHP_WIN32 # include "win32/php_stdint.h" -# include "win32/php_stdbool.h" # define __alignof__ __alignof # define alloca _alloca #else @@ -20,7 +19,6 @@ # elif HAVE_STDINT_H # include <stdint.h> # endif -# include <stdbool.h> #endif #include <stdio.h> @@ -391,7 +389,7 @@ php_sha512_crypt_r(const char *key, const char *salt, char *buffer, int buflen) char *s_bytes; /* Default number of rounds. */ size_t rounds = ROUNDS_DEFAULT; - bool rounds_custom = false; + zend_bool rounds_custom = 0; /* Find beginning of salt string. The prefix should normally always be present. Just in case it is not. */ @@ -408,7 +406,7 @@ php_sha512_crypt_r(const char *key, const char *salt, char *buffer, int buflen) if (*endp == '$') { salt = endp + 1; rounds = MAX(ROUNDS_MIN, MIN(srounds, ROUNDS_MAX)); - rounds_custom = true; + rounds_custom = 1; } } |