cvs: php4 /win32 time.c time.h

From: Date: Sun, 23 Jun 2002 23:22:34 +0000
Subject: cvs: php4 /win32 time.c time.h
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-12475@lists.php.net to get a copy of this message
edink Sun Jun 23 19:22:34 2002 EDT Modified files: /php4/win32 time.c time.h Log: Allow dynamically compiled extensions to use gettimeofday() on win32. Index: php4/win32/time.c diff -u php4/win32/time.c:1.5 php4/win32/time.c:1.6 --- php4/win32/time.c:1.5 Sun Feb 4 10:52:32 2001 +++ php4/win32/time.c Sun Jun 23 19:22:33 2002 @@ -11,7 +11,7 @@ * *****************************************************************************/ -/* $Id: time.c,v 1.5 2001/02/04 15:52:32 jmoore Exp $ */ +/* $Id: time.c,v 1.6 2002/06/23 23:22:33 edink Exp $ */ /** * @@ -44,7 +44,7 @@ -int gettimeofday(struct timeval *time_Info, struct timezone *timezone_Info) +PHPAPI int gettimeofday(struct timeval *time_Info, struct timezone *timezone_Info) { static struct timeval starttime = {0, 0}; @@ -186,7 +186,7 @@ return 0; } -int setitimer(int which, const struct itimerval *value, struct itimerval *ovalue) +PHPAPI int setitimer(int which, const struct itimerval *value, struct itimerval *ovalue) { int timeout = value->it_value.tv_sec * 1000 + value->it_value.tv_usec; int repeat = TIME_ONESHOT; Index: php4/win32/time.h diff -u php4/win32/time.h:1.5 php4/win32/time.h:1.6 --- php4/win32/time.h:1.5 Sun Jul 2 19:46:51 2000 +++ php4/win32/time.h Sun Jun 23 19:22:33 2002 @@ -15,6 +15,7 @@ /* Include stuff ************************************************************ */ #include <winsock.h> #include <time.h> +#include <php.h> /* Struct stuff ************************************************************* */ struct timezone { @@ -34,10 +35,10 @@ #define ITIMER_PROF 2 /*generates sigprof */ /* Prototype stuff ********************************************************** */ -extern int gettimeofday(struct timeval *time_Info, struct timezone *timezone_Info); +PHPAPI extern int gettimeofday(struct timeval *time_Info, struct timezone *timezone_Info); /* setitimer operates at 100 millisecond resolution */ -extern int setitimer(int which, const struct itimerval *value, +PHPAPI extern int setitimer(int which, const struct itimerval *value, struct itimerval *ovalue); #endif

« previous php.cvs (#12475) next »