diff options
author | ro <ro@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-11-22 11:44:56 +0000 |
---|---|---|
committer | ro <ro@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-11-22 11:44:56 +0000 |
commit | abcaf0b8bc258f3d99548bcf963bd6b613729dd3 (patch) | |
tree | ecf4f142c4963ac96a87adfd48c7b2b184696bbf /libcilkrts/include | |
parent | 613b17c78107d4ced492b310433dedc63a936d7f (diff) | |
download | gcc-abcaf0b8bc258f3d99548bcf963bd6b613729dd3.tar.gz |
Only use visibility if supported
* configure.ac (libcilkrts_cv_have_attribute_visibility): Check
for __attribute__((visibility)).
* configure: Regenerate.
* include/cilk/common.h (CILK_EXPORT, CILK_EXPORT_DATA): Only use
__attribute__((visibility)) if HAVE_ATTRIBUTE_VISIBILITY.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205254 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libcilkrts/include')
-rw-r--r-- | libcilkrts/include/cilk/common.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcilkrts/include/cilk/common.h b/libcilkrts/include/cilk/common.h index 8ec19afa922..d2c84fa95a2 100644 --- a/libcilkrts/include/cilk/common.h +++ b/libcilkrts/include/cilk/common.h @@ -101,7 +101,7 @@ namespace cilk { # define CILK_EXPORT /* nothing */ # define CILK_EXPORT_DATA /* nothing */ #else /* Unix/gcc */ -# ifdef IN_CILK_RUNTIME +# if defined(IN_CILK_RUNTIME) && defined(HAVE_ATTRIBUTE_VISIBILITY) # define CILK_EXPORT __attribute__((visibility("protected"))) # define CILK_EXPORT_DATA __attribute__((visibility("protected"))) # else |