summaryrefslogtreecommitdiff
path: root/signal.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-10-13 20:58:08 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-10-13 20:58:08 +0000
commitc96c193e1d8d6ec45749c8ab49e5be99771fab7c (patch)
tree588c57f09301e742336120b37ae9c3a70d835685 /signal.c
parent5558de40b6344f5bdba783b170a54df80f4b4e6d (diff)
downloadruby-c96c193e1d8d6ec45749c8ab49e5be99771fab7c.tar.gz
* atomic.h (ATOMIC_INC, ATOMIC_DEC): return old values.
[ruby-dev:44596] [Bug #5439] * signal.c (ruby_atomic_exchange): no needs to define on the platforms where atomic.h is available. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33464 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'signal.c')
-rw-r--r--signal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/signal.c b/signal.c
index 02ec9d3ebc..9b4e15eec0 100644
--- a/signal.c
+++ b/signal.c
@@ -18,7 +18,7 @@
#include <errno.h>
#include "atomic.h"
-#if !defined(_WIN32) && !defined(HAVE_GCC_ATOMIC_BUILTINS)
+#ifdef NEED_RUBY_ATOMIC_EXCHANGE
rb_atomic_t
ruby_atomic_exchange(rb_atomic_t *ptr, rb_atomic_t val)
{