aboutsummaryrefslogtreecommitdiffstats
path: root/thread_win32.c
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-01-04 00:30:52 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-01-04 00:30:52 +0000
commitdfc07e8aa705886baa9f8cf1eac628e5ff75b7be (patch)
tree01754c8635d5ccc8312b3a1306cec5a9effa81bb /thread_win32.c
parent9c9eb1e0ff2231038033766385163b9e9f1f61c9 (diff)
downloadruby-dfc07e8aa705886baa9f8cf1eac628e5ff75b7be.tar.gz
* thread_win32.c (InterlockedExchangePointer): old SDK support.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26237 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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 3cff714e87..b3753e3797 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)
{