diff base/System.cpp @ 103:173b39ea0728

* win32 fixes
author Chris Cannam
date Fri, 05 May 2006 13:29:31 +0000
parents ce1d385f4f89
children ac89a106f155
line wrap: on
line diff
--- a/base/System.cpp	Fri May 05 13:06:47 2006 +0000
+++ b/base/System.cpp	Fri May 05 13:29:31 2006 +0000
@@ -25,6 +25,11 @@
 
 extern "C" {
 
+void usleep(unsigned long usec)
+{
+    Sleep(usec / 1000);
+}
+
 void gettimeofday(struct timeval *tv, void *tz)
 {
     union { 
@@ -45,7 +50,7 @@
 GetProcessStatus(int pid)
 {
 #ifdef _WIN32
-    DWORD handle = OpenProcess(PROCESS_QUERY_INFORMATION, FALSE, pid);
+    HANDLE handle = OpenProcess(PROCESS_QUERY_INFORMATION, FALSE, pid);
     if (!handle) {
         return ProcessNotRunning;
     } else {