aboutsummaryrefslogtreecommitdiff
path: root/libcilkrts/include
diff options
context:
space:
mode:
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>2013-11-22 11:44:56 +0000
committerRainer Orth <ro@gcc.gnu.org>2013-11-22 11:44:56 +0000
commit954d4574058aacd03f1cc7ff27ed52ed8fbae32f (patch)
treeecf4f142c4963ac96a87adfd48c7b2b184696bbf /libcilkrts/include
parent517854bc935fb83fc01263ebd8272de316483d25 (diff)
downloadgcc-954d4574058aacd03f1cc7ff27ed52ed8fbae32f.zip
gcc-954d4574058aacd03f1cc7ff27ed52ed8fbae32f.tar.gz
gcc-954d4574058aacd03f1cc7ff27ed52ed8fbae32f.tar.bz2
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. From-SVN: r205254
Diffstat (limited to 'libcilkrts/include')
-rw-r--r--libcilkrts/include/cilk/common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcilkrts/include/cilk/common.h b/libcilkrts/include/cilk/common.h
index 8ec19af..d2c84fa 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