]> gitweb.factorcode.org Git - factor.git/commitdiff
vm: remove old (possibly wrong) WIN32 defines
authorJohn Benediktsson <mrjbq7@gmail.com>
Wed, 23 Aug 2023 23:03:53 +0000 (16:03 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Wed, 23 Aug 2023 23:03:53 +0000 (16:03 -0700)
vm/os-windows.cpp
vm/os-windows.hpp

index a5df4dc8647b56b5b2a69b705ec69494897317ce..0a27a6a388a3b7bc6ab8593d25465406f0c0a59a 100644 (file)
@@ -247,8 +247,6 @@ 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) { (void)dwParam; }
 
-// CancelSynchronousIo is not in Windows XP
-#if _WIN32_WINNT >= 0x0600
 static void wake_up_thread(HANDLE thread) {
   if (!CancelSynchronousIo(thread)) {
     DWORD err = GetLastError();
@@ -263,9 +261,6 @@ static void wake_up_thread(HANDLE thread) {
     }
   }
 }
-#else
-static void wake_up_thread(HANDLE thread) { (void)thread; }
-#endif
 
 static BOOL WINAPI ctrl_handler(DWORD dwCtrlType) {
   switch (dwCtrlType) {
index a21a67361b692a3f7ec9c9e10490cc230303912b..05d8d86b76a773c5c4ba454ac7be91333fa0e0ef 100644 (file)
@@ -5,12 +5,6 @@
 #include <wchar.h>
 #endif
 
-#if _WIN32_WINNT != 0x0600
-#undef _WIN32_WINNT
-#define _WIN32_WINNT 0x0501  // For AddVectoredExceptionHandler, WinXP support
-//#define _WIN32_WINNT 0x0600  // For CancelSynchronousIo
-#endif
-
 #ifndef UNICODE
 #define UNICODE
 #endif