summaryrefslogtreecommitdiff
path: root/mach_dep.c
diff options
context:
space:
mode:
Diffstat (limited to 'mach_dep.c')
-rw-r--r--mach_dep.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mach_dep.c b/mach_dep.c
index 60b73b22..8df57474 100644
--- a/mach_dep.c
+++ b/mach_dep.c
@@ -298,6 +298,9 @@ GC_INNER void GC_with_callee_saves_pushed(void (*fn)(ptr_t, void *),
/* force callee-save registers and register windows onto */
/* the stack. */
__builtin_unwind_init();
+# elif defined(NO_CRT) && defined(MSWIN32)
+ CONTEXT ctx;
+ RtlCaptureContext(&ctx);
# else
/* Generic code */
/* The idea is due to Parag Patel at HP. */