From dfc07e8aa705886baa9f8cf1eac628e5ff75b7be Mon Sep 17 00:00:00 2001 From: usa Date: Mon, 4 Jan 2010 00:30:52 +0000 Subject: * thread_win32.c (InterlockedExchangePointer): old SDK support. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26237 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ thread_win32.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index cfd36f9929..20315d07b4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Mon Jan 4 09:30:25 2010 NAKAMURA Usaku + + * thread_win32.c (InterlockedExchangePointer): old SDK support. + Sun Jan 3 23:54:51 2010 Yuki Sonoda (Yugui) * trace.h: new file. wraps tracing mechanisms. 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) { -- cgit v1.2.3