cdefs: Rework and augment visibility attributes
authorJohn Marino <draco@marino.st>
Sun, 5 Feb 2012 16:14:25 +0000 (17:14 +0100)
committerJohn Marino <draco@marino.st>
Sun, 5 Feb 2012 16:32:50 +0000 (17:32 +0100)
commit25fffb38ee50e7671cd4c12b5eca431a391ff8d5
treeb946826788c9145e043bdbca7123ae12dcb0be8b
parent7fba7344c423a5a1e66111bacb99788c6ef68fbe
cdefs: Rework and augment visibility attributes

One macro based on GCC visibility functions was already defined,
__exported.  However, it was marked as available for all GCC versions
when it fact it was introduced with gcc 4.0.

There was no macro for hidden visibility attributes, so the macros
__dso_hidden and __dso_public were borrowed from NetBSD.  __dso_public
is an alias for __exported.  The definition for all three macros were
made on the condition that the gcc version used is 4.0 or later.
sys/sys/cdefs.h