OSDN Git Service

libc-symbols: add attribute_protected
authorTimo Teras <timo.teras@iki.fi>
Fri, 16 Apr 2010 12:43:15 +0000 (15:43 +0300)
committerAustin Foxley <austinf@cetoncorp.com>
Fri, 16 Apr 2010 17:12:47 +0000 (10:12 -0700)
Definition to use protected visibility.

Signed-off-by: Timo Teras <timo.teras@iki.fi>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
include/libc-symbols.h

index 2800fe2..db91a38 100644 (file)
@@ -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