зеркало из https://github.com/github/ruby.git
* 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:
Родитель
9c223dd573
Коммит
b073b5347b
|
@ -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.
|
||||
|
|
2
atomic.h
2
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;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче