Re: cvs: php-src /win32 time.c

From: Date: Mon, 01 Dec 2003 20:23:01 +0000
Subject: Re: cvs: php-src /win32 time.c
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-5943@lists.php.net to get a copy of this message
Does this mean I can enable my GetLongPathName() patch in tsrm_virtual_cwd.c (I think it also requires Win98 but I kept it out because there are people who are still using Windows 95). I think we decided that we will continue supporting Windows 95 and I #If 0'd my patch. Also, I just saw (and fixed the indentation) of some realpath() implementation in tsrm_win32.c. Any reason for me not to nuke it? I think my code is better or is it being used throughout PHP? If so, we should probably use something similar to my implementation using GetLongPathName(). Thoughts? Andi At 10:59 PM 11/29/2003 +0000, Wez Furlong wrote:
wez             Sat Nov 29 17:59:34 2003 EDT
Modified files:
    /php-src/win32      time.c
Log: Fix build for new usleep implementation. NB: we now depend on windows 98 and later; windows 95 does not have these timing functions. Index: php-src/win32/time.c diff -u php-src/win32/time.c:1.7 php-src/win32/time.c:1.8
--- php-src/win32/time.c:1.7    Sat Nov 29 17:48:42 2003
+++ php-src/win32/time.c        Sat Nov 29 17:59:33 2003
@@ -11,7 +11,7 @@ * *****************************************************************************/ -/* $Id: time.c,v 1.7 2003/11/29 22:48:42 wez Exp $ */ +/* $Id: time.c,v 1.8 2003/11/29 22:59:33 wez Exp $ */ /** * @@ -22,9 +22,14 @@ /* Include stuff ************************************************************ */ +/* this allows the use of the WaitableTimer functions. + * For win98 and later */ +#define _WIN32_WINNT 0x400 + #include "time.h" #include "unistd.h" #include "signal.h" +#include <windows.h> #include <winbase.h> #include <mmsystem.h> #include <errno.h> @@ -131,7 +136,7 @@
        HANDLE timer;
        LARGE_INTEGER due;
-       due.QuadPart = -useconds * 1000;
+       due.QuadPart = -1000 * useconds;
        timer = CreateWaitableTimer(NULL, TRUE, NULL);
        SetWaitableTimer(timer, &due, 0, NULL, NULL, 0);
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.internals (#5943) next »