diff options
author | ngoto <ngoto@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-10-21 03:26:11 +0000 |
---|---|---|
committer | ngoto <ngoto@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-10-21 03:26:11 +0000 |
commit | b073b5347bc90a6786f1cdea32bcfce69430ea1b (patch) | |
tree | 94c4ecefa9b11c7f055d4b8ade5c2db1fbfc7056 /atomic.h | |
parent | 9c223dd57301fc28ab5a42db429f27f3cebda80c (diff) | |
download | ruby-b073b5347bc90a6786f1cdea32bcfce69430ea1b.tar.gz |
* 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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |