* 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
This commit is contained in:
ngoto 2011-10-21 03:26:11 +00:00
Родитель 9c223dd573
Коммит b073b5347b
2 изменённых файлов: 6 добавлений и 1 удалений

Просмотреть файл

@ -1,3 +1,8 @@
Fri Oct 21 12:10:20 2011 Naohisa Goto <ngotogenome@gmail.com>
* atomic.h: change Solaris checking macro because atomic_ops can work
not only with Sun Studio but also with Fujitsu C Compiler.
Fri Oct 21 02:11:00 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
* ext/openssl/ossl_ns_spki.c: Complete documentation.

Просмотреть файл

@ -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;