Browse Source

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>
Timo Teras 15 years ago
parent
commit
837e8425ce
1 changed files with 2 additions and 0 deletions
  1. 2 0
      include/libc-symbols.h

+ 2 - 0
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