summaryrefslogtreecommitdiff
path: root/src/xine-utils/attributes.h
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2006-09-26 05:19:47 +0000
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2006-09-26 05:19:47 +0000
commit1b23ad7e208929b8b99e37de64282f74070f37b6 (patch)
tree3b36d1df9b2f7357d2f541435bb4855ce9860ee5 /src/xine-utils/attributes.h
parent8e0cafbd9c5afcbb083d891bb138313aac76b04a (diff)
downloadxine-lib-1b23ad7e208929b8b99e37de64282f74070f37b6.tar.gz
xine-lib-1b23ad7e208929b8b99e37de64282f74070f37b6.tar.bz2
Use protected visibility for all the functions exported by libxine.so, so that their binding is local to the library (has a similar effect to -Bsymbolic, but will work better with hidden visibility enabled, that is step two).
CVS patchset: 8289 CVS date: 2006/09/26 05:19:47
Diffstat (limited to 'src/xine-utils/attributes.h')
-rw-r--r--src/xine-utils/attributes.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/xine-utils/attributes.h b/src/xine-utils/attributes.h
index c468b7ba5..4bf5a21af 100644
--- a/src/xine-utils/attributes.h
+++ b/src/xine-utils/attributes.h
@@ -42,5 +42,16 @@
#endif /* __attribute __*/
#endif
+#ifdef XINE_COMPILE
+# include "config.h"
+#endif
+
+/* Export protected only for libxine functions */
+#if defined(XINE_LIBRARY_COMPILE) && defined(SUPPORT_ATTRIBUTE_VISIBILITY)
+# define XINE_PROTECTED __attribute__((visibility("protected")))
+#else
+# define XINE_PROTECTED
+#endif
+
#endif /* ATTRIBUTE_H_ */