1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* ruby_atomic.h (ATOMIC_SIZE_CAS): fix compile error on Solaris since r43460.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43677 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ngoto 2013-11-14 11:40:15 +00:00
parent e4f8f8907c
commit c3c06ff78c
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Thu Nov 14 20:24:15 2013 Naohisa Goto <ngotogenome@gmail.com>
* ruby_atomic.h (ATOMIC_SIZE_CAS): fix compile error on Solaris
since r43460.
Thu Nov 14 19:53:00 2013 Tanaka Akira <akr@fsij.org>
* test/openssl/test_cipher.rb (test_aes_gcm_wrong_tag): Don't use

View file

@ -91,7 +91,7 @@ typedef unsigned int rb_atomic_t;
# define ATOMIC_SIZE_INC(var) atomic_inc_ulong(&(var))
# define ATOMIC_SIZE_DEC(var) atomic_dec_ulong(&(var))
# define ATOMIC_SIZE_EXCHANGE(var, val) atomic_swap_ulong(&(var), (val))
# define ATOMIC_SIZE_CAS(var, oldval, val) atomic_cas_ulong(&(var), (val))
# define ATOMIC_SIZE_CAS(var, oldval, val) atomic_cas_ulong(&(var), (oldval), (val))
# else
# define ATOMIC_SIZE_ADD(var, val) atomic_add_int(&(var), (val))
# define ATOMIC_SIZE_SUB(var, val) atomic_add_int(&(var), -(val))