summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorHerbert Dürr <hdu@apache.org>2013-04-17 13:53:21 +0000
committerHerbert Dürr <hdu@apache.org>2013-04-17 13:53:21 +0000
commit55c850cfeb2d136554d611d3ac1f4195eff28bd0 (patch)
tree4226f99b528ffd04072911a1b3aeeb65ab79bdce /sal
parent2f35d17889b1eafe670262a82b95ee04e165d9df (diff)
only check for gcc-visibility feature but not for gcc itself
there are non-gcc compilers such as clang that support this feature
Notes
reject: clang define __GNUC__
Diffstat (limited to 'sal')
-rw-r--r--sal/inc/sal/types.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sal/inc/sal/types.h b/sal/inc/sal/types.h
index 944cf4765cd3..8f829d3647a1 100644
--- a/sal/inc/sal/types.h
+++ b/sal/inc/sal/types.h
@@ -268,7 +268,7 @@ typedef void * sal_Handle;
# define SAL_DLLPUBLIC_EXPORT __global
# define SAL_DLLPUBLIC_IMPORT
# define SAL_DLLPRIVATE __hidden
-# elif defined(__GNUC__) && defined(HAVE_GCC_VISIBILITY_FEATURE)
+# elif defined(HAVE_GCC_VISIBILITY_FEATURE)
# define SAL_DLLPUBLIC_EXPORT __attribute__ ((visibility("default")))
# define SAL_DLLPUBLIC_IMPORT
# define SAL_DLLPRIVATE __attribute__ ((visibility("hidden")))