aboutsummaryrefslogtreecommitdiffstats
path: root/include/AL/al.h
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 /include/AL/al.h
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.
Diffstat (limited to 'include/AL/al.h')
-rw-r--r--include/AL/al.h2
1 files changed, 1 insertions, 1 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