summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Teras <timo.teras@iki.fi>2010-04-16 15:43:15 +0300
committerAustin Foxley <austinf@cetoncorp.com>2010-04-16 10:12:47 -0700
commit837e8425ce9a0c1ad1c58a00cf3b9e949e7b17cd (patch)
tree67a84310401ab1a09b0f9cb903e807538c2927f7
parentba38f0cec27b91cc7c605417ad047c4dc77d732f (diff)
libc-symbols: add attribute_protected
Definition to use protected visibility. Signed-off-by: Timo Teras <timo.teras@iki.fi> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
-rw-r--r--include/libc-symbols.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/libc-symbols.h b/include/libc-symbols.h
index 2800fe25c..db91a38a1 100644
--- a/include/libc-symbols.h
+++ b/include/libc-symbols.h
@@ -469,9 +469,11 @@ FIXME! - ?
&& (( __GNUC__ >= 3 && __GNUC_MINOR__ >= 3) || __GNUC__ >= 4) \
) || defined __ICC
# define attribute_hidden __attribute__ ((visibility ("hidden")))
+# define attribute_protected __attribute__ ((visibility ("protected")))
# define __hidden_proto_hiddenattr(attrs...) __attribute__ ((visibility ("hidden"), ##attrs))
#else
# define attribute_hidden
+# define attribute_protected
# define __hidden_proto_hiddenattr(attrs...)
#endif