Skip to content

Commit

Permalink
* thread_win32.c (InterlockedExchangePointer): old SDK support.
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26237 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
unak committed Jan 4, 2010
1 parent 9c9eb1e commit dfc07e8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
@@ -1,3 +1,7 @@
Mon Jan 4 09:30:25 2010 NAKAMURA Usaku <usa@ruby-lang.org>

* thread_win32.c (InterlockedExchangePointer): old SDK support.

Sun Jan 3 23:54:51 2010 Yuki Sonoda (Yugui) <yugui@yugui.jp>

* trace.h: new file. wraps tracing mechanisms.
Expand Down
4 changes: 4 additions & 0 deletions thread_win32.c
Expand Up @@ -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)
{
Expand Down

0 comments on commit dfc07e8

Please sign in to comment.