configure: make symbol visibility dependent in the configure test, misc changes.

This commit is contained in:
Juan RP
2011-01-15 12:21:38 +01:00
parent 6051eb29ab
commit 3482e68491
2 changed files with 26 additions and 12 deletions

View File

@ -49,9 +49,10 @@
/*
* By default all public functions have default visibility, unless
* gcc >= 4.x and the HIDDEN definition is used.
* visibility has been detected by configure and the HIDDEN definition
* is used.
*/
#if __GNUC__ >= 4
#if HAVE_VISIBILITY
#define HIDDEN __attribute__ ((visibility("hidden")))
#else
#define HIDDEN