ruby-changes:21450
From: ngoto <ko1@a...>
Date: Fri, 21 Oct 2011 12:26:22 +0900 (JST)
Subject: [ruby-changes:21450] ngoto:r33499 (trunk): * atomic.h: change Solaris checking macro because atomic_ops can work
ngoto 2011-10-21 12:26:11 +0900 (Fri, 21 Oct 2011) New Revision: 33499 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=33499 Log: * atomic.h: change Solaris checking macro because atomic_ops can work not only with Sun Studio but also with Fujitsu C Compiler. Modified files: trunk/ChangeLog trunk/atomic.h Index: ChangeLog =================================================================== --- ChangeLog (revision 33498) +++ ChangeLog (revision 33499) @@ -1,3 +1,8 @@ +Fri Oct 21 12:10:20 2011 Naohisa Goto <ngotogenome@g...> + + * 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@g...> * ext/openssl/ossl_ns_spki.c: Complete documentation. Index: atomic.h =================================================================== --- atomic.h (revision 33498) +++ atomic.h (revision 33499) @@ -42,7 +42,7 @@ # 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; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/