aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2010-03-22 23:10:29 -0700
committerChris Robinson <[email protected]>2010-03-22 23:10:29 -0700
commit556e9b8fee160febfffc591bb9e2efb881850252 (patch)
treed35ada9a433b25e4e2929cd245d1d8b09232c6a3
parentef92c6345597a2ebf0a47cae6e0bb7b38497e213 (diff)
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.
-rw-r--r--include/AL/al.h2
-rw-r--r--include/AL/alc.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/AL/al.h b/include/AL/al.h
index 7e596a0b..40b2db1a 100644
--- a/include/AL/al.h
+++ b/include/AL/al.h
@@ -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
diff --git a/include/AL/alc.h b/include/AL/alc.h
index dac94615..a7e82188 100644
--- a/include/AL/alc.h
+++ b/include/AL/alc.h
@@ -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