]> granicus.if.org Git - php/commitdiff
MFH
authorEdin Kadribasic <edink@php.net>
Mon, 24 Jun 2002 08:21:28 +0000 (08:21 +0000)
committerEdin Kadribasic <edink@php.net>
Mon, 24 Jun 2002 08:21:28 +0000 (08:21 +0000)
win32/time.c
win32/time.h

index 710307574d65c2d4f0ed73925387ebb502be3e7d..9f07fab862ce8430fb3c07708bca1177819b8324 100644 (file)
@@ -44,7 +44,7 @@ __int64 ff;
 
  
 
-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 @@ LPTIMECALLBACK setitimer_timeout(UINT uTimerID, UINT info, DWORD dwUser, DWORD d
        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 457d4fa9e0c72fe9f9803c12e4e79394c0ac9a26..f0514ebe5986c7ee625c75a186de15893ea60f56 100644 (file)
@@ -15,6 +15,7 @@
 /* Include stuff ************************************************************ */
 #include <winsock.h>
 #include <time.h>
+#include <php.h>
 
 /* Struct stuff ************************************************************* */
 struct timezone {
@@ -34,10 +35,10 @@ struct itimerval {
 #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