summaryrefslogtreecommitdiff
path: root/atomic.h
diff options
context:
space:
mode:
authorngoto <ngoto@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-10-21 03:26:11 +0000
committerngoto <ngoto@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-10-21 03:26:11 +0000
commitb073b5347bc90a6786f1cdea32bcfce69430ea1b (patch)
tree94c4ecefa9b11c7f055d4b8ade5c2db1fbfc7056 /atomic.h
parent9c223dd57301fc28ab5a42db429f27f3cebda80c (diff)
* atomic.h: change Solaris checking macro because atomic_ops can work
not only with Sun Studio but also with Fujitsu C Compiler. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33499 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'atomic.h')
-rw-r--r--atomic.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/atomic.h b/atomic.h
index 33f731927d..6dbad6db2d 100644
--- a/atomic.h
+++ b/atomic.h
@@ -42,7 +42,7 @@ typedef unsigned int rb_atomic_t; /* Anything OK */
# define ATOMIC_OR(var, val) __sync_or_and_fetch(&(var), (val))
# define ATOMIC_EXCHANGE(var, val) __sync_lock_test_and_set(&(var), (val))
-#elif defined(__SUNPRO_C)
+#elif defined(__sun) || defined(__sun__)
#include <atomic.h>
typedef unsigned int rb_atomic_t;