summaryrefslogtreecommitdiff
path: root/thread_win32.c
diff options
context:
space:
mode:
Diffstat (limited to 'thread_win32.c')
-rw-r--r--thread_win32.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/thread_win32.c b/thread_win32.c
index 3cff714..b3753e3 100644
--- a/thread_win32.c
+++ b/thread_win32.c
@@ -446,6 +446,10 @@ native_thread_init_stack(rb_thread_t *th)
th->machine_stack_maxsize = size - space;
}
+#ifndef InterlockedExchangePointer
+#define InterlockedExchangePointer(t, v) \
+ (void *)InterlockedExchange((long *)(t), (long)(v))
+#endif
static void
native_thread_destroy(rb_thread_t *th)
{