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:49:23 +0000 (17:49 +0100)
commitbac3c6349f25de315ae41c036e5dd310d23e6482
tree9ba971a640987cb1e04e07ba922cbdbeedd6d521
parent7f65f0d5238875c7e0d3cf4e31af15deacdf8bb4
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