#ifdef PHP_WIN32
# include "win32/php_stdint.h"
-# include "win32/php_stdbool.h"
# define __alignof__ __alignof
# define alloca _alloca
#else
# elif HAVE_STDINT_H
# include <stdint.h>
# endif
-# include <stdbool.h>
#endif
#include <stdio.h>
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. */
if (*endp == '$') {
salt = endp + 1;
rounds = MAX(ROUNDS_MIN, MIN(srounds, ROUNDS_MAX));
- rounds_custom = true;
+ rounds_custom = 1;
}
}
#include <limits.h>
#ifdef PHP_WIN32
# include "win32/php_stdint.h"
-# include "win32/php_stdbool.h"
# define __alignof__ __alignof
# define alloca _alloca
#else
# elif HAVE_STDINT_H
# include <stdint.h>
# endif
-# include <stdbool.h>
#endif
#include <stdio.h>
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. */
if (*endp == '$') {
salt = endp + 1;
rounds = MAX(ROUNDS_MIN, MIN(srounds, ROUNDS_MAX));
- rounds_custom = true;
+ rounds_custom = 1;
}
}