[git commit master] libc-symbols: add attribute_protected

Timo Teras timo.teras at iki.fi
Fri Apr 23 14:31:55 UTC 2010


commit: http://git.uclibc.org/uClibc/commit/?id=837e8425ce9a0c1ad1c58a00cf3b9e949e7b17cd
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/master

Definition to use protected visibility.

Signed-off-by: Timo Teras <timo.teras at iki.fi>
Signed-off-by: Austin Foxley <austinf at cetoncorp.com>
---
 include/libc-symbols.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/include/libc-symbols.h b/include/libc-symbols.h
index 2800fe2..db91a38 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
 
-- 
1.6.3.3



More information about the uClibc-cvs mailing list