cvs: php4(PHP_4_2_0) /win32 time.c time.h
| From: | Edin Kadribasic | Date: | Mon, 24 Jun 2002 08:21:29 +0000 |
| Subject: | cvs: php4(PHP_4_2_0) /win32 time.c time.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-12483@lists.php.net to get a copy of this message | ||
edink Mon Jun 24 04:21:29 2002 EDT
Modified files: (Branch: PHP_4_2_0)
/php4/win32 time.h time.c
Log:
MFH
Index: php4/win32/time.h
diff -u php4/win32/time.h:1.5 php4/win32/time.h:1.5.10.1
--- php4/win32/time.h:1.5 Sun Jul 2 19:46:51 2000
+++ php4/win32/time.h Mon Jun 24 04:21:28 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
Index: php4/win32/time.c
diff -u php4/win32/time.c:1.5 php4/win32/time.c:1.5.8.1
--- php4/win32/time.c:1.5 Sun Feb 4 10:52:32 2001
+++ php4/win32/time.c Mon Jun 24 04:21:28 2002
@@ -11,7 +11,7 @@
*
*****************************************************************************/
-/* $Id: time.c,v 1.5 2001/02/04 15:52:32 jmoore Exp $ */
+/* $Id: time.c,v 1.5.8.1 2002/06/24 08:21:28 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;