diff options
author | Sascha Schumann <sas@php.net> | 1999-11-30 20:46:07 +0000 |
---|---|---|
committer | Sascha Schumann <sas@php.net> | 1999-11-30 20:46:07 +0000 |
commit | cfc7e27a7fb0a36258a3d791a7f5593b38cb865c (patch) | |
tree | 3379d82f0c008177899f05219b226df4d511ce3b /main/reentrancy.c | |
parent | 3a176301214a0129461c947ace061906f9136aa0 (diff) | |
download | php-git-cfc7e27a7fb0a36258a3d791a7f5593b38cb865c.tar.gz |
Add PHPAPI for Windows.
Diffstat (limited to 'main/reentrancy.c')
-rw-r--r-- | main/reentrancy.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/main/reentrancy.c b/main/reentrancy.c index 2d10618c4c..0faf76c4aa 100644 --- a/main/reentrancy.c +++ b/main/reentrancy.c @@ -47,7 +47,7 @@ static MUTEX_T reentrant_locks[NUMBER_OF_LOCKS]; #if !defined(HAVE_LOCALTIME_R) && defined(HAVE_LOCALTIME) -struct tm *localtime_r(const time_t *const timep, struct tm *p_tm) +PHPAPI struct tm *localtime_r(const time_t *const timep, struct tm *p_tm) { struct tm *tmp; @@ -65,7 +65,7 @@ struct tm *localtime_r(const time_t *const timep, struct tm *p_tm) #if !defined(HAVE_CTIME_R) && defined(HAVE_CTIME) -char *ctime_r(const time_t *clock, char *buf) +PHPAPI char *ctime_r(const time_t *clock, char *buf) { char *tmp; @@ -83,7 +83,7 @@ char *ctime_r(const time_t *clock, char *buf) #if !defined(HAVE_ASCTIME_R) && defined(HAVE_ASCTIME) -char *asctime_r(const struct tm *tm, char *buf) +PHPAPI char *asctime_r(const struct tm *tm, char *buf) { char *tmp; @@ -101,7 +101,7 @@ char *asctime_r(const struct tm *tm, char *buf) #if !defined(HAVE_GMTIME_R) && defined(HAVE_GMTIME) -struct tm *gmtime_r(const time_t *const timep, struct tm *p_tm) +PHPAPI struct tm *gmtime_r(const time_t *const timep, struct tm *p_tm) { struct tm *tmp; @@ -186,7 +186,7 @@ do_rand(unsigned long *ctx) } -int +PHPAPI int rand_r(unsigned int *ctx) { u_long val = (u_long) *ctx; @@ -243,9 +243,8 @@ rand_r(unsigned int *ctx) */ #include <stddef.h> -#include <string.h> -char * +PHPAPI char * strtok_r(char *s, const char *delim, char **last) { char *spanp; |