From b073b5347bc90a6786f1cdea32bcfce69430ea1b Mon Sep 17 00:00:00 2001 From: ngoto Date: Fri, 21 Oct 2011 03:26:11 +0000 Subject: [PATCH] * 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 --- ChangeLog | 5 +++++ atomic.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 63f7edc464..c46c2c4235 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Fri Oct 21 12:10:20 2011 Naohisa Goto + + * 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 * ext/openssl/ossl_ns_spki.c: Complete documentation. diff --git a/atomic.h b/atomic.h index 33f731927d..6dbad6db2d 100644 --- a/atomic.h +++ b/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 typedef unsigned int rb_atomic_t;