The visibility attribute was actually added in gcc 3.3.x, not 4.0.

Just assume that if -fvisibility=hidden works that the attribute
is usable.
This commit is contained in:
Todd C. Miller
2012-06-13 16:57:49 -04:00
parent 649edc3192
commit 1fe3f9f40f
4 changed files with 9 additions and 1 deletions

View File

@@ -53,7 +53,7 @@
#endif
#ifndef __dso_public
# if __GNUC_PREREQ__(4, 0)
# ifdef HAVE_DSO_VISIBILITY
# define __dso_public __attribute__((__visibility__("default")))
# define __dso_hidden __attribute__((__visibility__("hidden")))
# else