[runtime] Fixed Windows mono_threads_core_get_stack_bounds to work with cross-compile...
authorJoão Matos <joao@tritao.eu>
Mon, 9 Mar 2015 14:20:36 +0000 (14:20 +0000)
committerJoão Matos <joao@tritao.eu>
Mon, 9 Mar 2015 14:22:01 +0000 (14:22 +0000)
mono/utils/mono-threads-windows.c

index 02bd26e0c793988c8fc4f2d15ac766df70c5014d..e5de15123b236096a050e87acb15332cef936877 100755 (executable)
@@ -264,7 +264,7 @@ void
 mono_threads_core_get_stack_bounds (guint8 **staddr, size_t *stsize)
 {
        MEMORY_BASIC_INFORMATION meminfo;
-#ifdef TARGET_AMD64
+#ifdef _WIN64
        /* win7 apis */
        NT_TIB* tib = (NT_TIB*)NtCurrentTeb();
        guint8 *stackTop = (guint8*)tib->StackBase;