]> gitweb.factorcode.org Git - factor.git/blobdiff - vm/os-windows.hpp
Windows: Add two new targets, x86-32-vista and x86-64-vista for bjourne's
[factor.git] / vm / os-windows.hpp
index 1f9a1da7156166d2c603aa06e399271771a7fde4..2dab596c4da41d8d200979608efa0102f82a0633 100644 (file)
@@ -5,8 +5,11 @@
 #include <wchar.h>
 #endif
 
+#if _WIN32_WINNT != 0x0600
 #undef _WIN32_WINNT
-#define _WIN32_WINNT 0x0501  // For AddVectoredExceptionHandler
+#define _WIN32_WINNT 0x0501  // For AddVectoredExceptionHandler, WinXP support
+//#define _WIN32_WINNT 0x0600  // For CancelSynchronousIo
+#endif
 
 #ifndef UNICODE
 #define UNICODE
@@ -50,8 +53,6 @@ typedef HANDLE THREADHANDLE;
 
 #define FACTOR_OS_STRING "windows"
 
-#define FACTOR_DLL NULL
-
 // SSE traps raise these exception codes, which are defined in internal NT
 // headers
 // but not winbase.h
@@ -90,4 +91,6 @@ inline static void breakpoint() { DebugBreak(); }
 #define CODE_TO_FUNCTION_POINTER_CALLBACK(vm, code) (void)0
 #define FUNCTION_CODE_POINTER(ptr) ptr
 #define FUNCTION_TOC_POINTER(ptr) ptr
+
+extern HANDLE boot_thread;
 }