summaryrefslogtreecommitdiff
path: root/lib/accelerated
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2014-09-27 00:44:30 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2014-09-29 20:41:32 +0200
commitfe448a36e5c0ff05c185839e841e59f03bb94184 (patch)
treeebb958522a30b32a4b09cfb1375765243d02c52e /lib/accelerated
parentdb6f5abcfa9f8fa1741b09f65fb41ccc02a3c866 (diff)
downloadgnutls-fe448a36e5c0ff05c185839e841e59f03bb94184.tar.gz
use __hidden in solaris to provide the hidden visibility attribute
Diffstat (limited to 'lib/accelerated')
-rw-r--r--lib/accelerated/x86/x86-common.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/accelerated/x86/x86-common.c b/lib/accelerated/x86/x86-common.c
index cc67b08eb8..de8abc7d18 100644
--- a/lib/accelerated/x86/x86-common.c
+++ b/lib/accelerated/x86/x86-common.c
@@ -41,8 +41,10 @@
/* ebx, ecx, edx
* This is a format compatible with openssl's CPUID detection.
*/
-#ifdef __GNUC__
+#if defined(__GNUC__)
__attribute__((visibility("hidden")))
+#elif defined(__SUNPRO_C)
+__hidden
#endif
unsigned int _gnutls_x86_cpuid_s[3];