diff options
author | Sascha Schumann <sas@php.net> | 1999-11-26 17:33:53 +0000 |
---|---|---|
committer | Sascha Schumann <sas@php.net> | 1999-11-26 17:33:53 +0000 |
commit | 524f0b1b0ab408777d16002a5909f0cfc9e9d58b (patch) | |
tree | d5006c406115fbd04c2586390c2e0fe8d8db5176 /main/php_reentrancy.h | |
parent | a64691615ac5e3db4187d4ba6ebe7ab77198761a (diff) | |
download | php-git-524f0b1b0ab408777d16002a5909f0cfc9e9d58b.tar.gz |
- move strtok_r into reentrancy.c
- add rand_r()
Diffstat (limited to 'main/php_reentrancy.h')
-rw-r--r-- | main/php_reentrancy.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/main/php_reentrancy.h b/main/php_reentrancy.h index eaf5e37751..4e7aad2441 100644 --- a/main/php_reentrancy.h +++ b/main/php_reentrancy.h @@ -60,8 +60,21 @@ char *asctime_r(const struct tm *tm, char *buf); struct tm *gmtime_r(const time_t *const timep, struct tm *p_tm); #endif +#if !defined(HAVE_STRTOK_R) +#define strtok_r php_strtok_r +char *strtok_r(char *s, const char *delim, char **last); +#endif + +#if !defined(HAVE_RAND_R) +#define rand_r php_rand_r +int rand_r(unsigned int *seed); +#endif + +#if !defined(ZTS) +#undef PHP_NEED_REENTRANCY +#endif -#if defined(ZTS) && defined(PHP_NEED_REENTRANCY) +#if defined(PHP_NEED_REENTRANCY) void reentrancy_startup(void); void reentrancy_shutdown(void); #else |