]> gitweb.factorcode.org Git - factor.git/blobdiff - vm/os-windows.cpp
Windows: Add two new targets, x86-32-vista and x86-64-vista for bjourne's
[factor.git] / vm / os-windows.cpp
index 64e425b13ad255fe312a09c4bb83293b706dcd9d..f83f67f91d6133e2a67bfa5dc6234dbb62e50b18 100644 (file)
@@ -254,6 +254,8 @@ VM_C_API LONG exception_handler(PEXCEPTION_RECORD e, void* frame, PCONTEXT c,
    cancellation requests to unblock the thread. */
 VOID CALLBACK dummy_cb (ULONG_PTR dwParam) { }
 
+// CancelSynchronousIo is not in Windows XP
+#if _WIN32_WINNT >= 0x0600
 static void wake_up_thread(HANDLE thread) {
   if (!CancelSynchronousIo(thread)) {
     DWORD err = GetLastError();
@@ -268,6 +270,9 @@ static void wake_up_thread(HANDLE thread) {
     }
   }
 }
+#else
+static void wake_up_thread(HANDLE thread) {}
+#endif
 
 static BOOL WINAPI ctrl_handler(DWORD dwCtrlType) {
   switch (dwCtrlType) {