Use protected visibility for exported API functions

Protected visibility is like default visibility, in that functions will be
"exported" from the library. However, it also guarantees that references to the
functions from within the library will be to the library's version, even if the
symbols are overriden by the application.
This commit is contained in:
Chris Robinson
2010-03-22 23:10:29 -07:00
parent ef92c63455
commit 556e9b8fee
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ extern "C" {
#endif
#else
#if defined(AL_BUILD_LIBRARY) && defined(HAVE_GCC_VISIBILITY)
#define AL_API __attribute__((visibility("default")))
#define AL_API __attribute__((visibility("protected")))
#else
#define AL_API extern
#endif
+1 -1
View File
@@ -14,7 +14,7 @@ extern "C" {
#endif
#else
#if defined(AL_BUILD_LIBRARY) && defined(HAVE_GCC_VISIBILITY)
#define ALC_API __attribute__((visibility("default")))
#define ALC_API __attribute__((visibility("protected")))
#else
#define ALC_API extern
#endif