summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-03-24 02:36:52 +0000
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-03-24 02:36:52 +0000
commit53fc98d09198a2058aa933c8848921ecd211861f (patch)
treedf0b55c7ccaf36240cba24ebaa815af670149222 /src
parent28f03eec2826b61adc58e545a642d3d14163cf91 (diff)
downloadxine-lib-53fc98d09198a2058aa933c8848921ecd211861f.tar.gz
xine-lib-53fc98d09198a2058aa933c8848921ecd211861f.tar.bz2
Improve tests for visibility attribute support; Mach-O supports default visibility but not protected (as the default is actually kinda like protected), thanks to Matt Messier in bug #1686194 for pointing me at that.
CVS patchset: 8744 CVS date: 2007/03/24 02:36:52
Diffstat (limited to 'src')
-rw-r--r--src/xine-utils/attributes.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/xine-utils/attributes.h b/src/xine-utils/attributes.h
index 0328493aa..4d22226ac 100644
--- a/src/xine-utils/attributes.h
+++ b/src/xine-utils/attributes.h
@@ -47,8 +47,10 @@
#endif
/* Export protected only for libxine functions */
-#if defined(XINE_LIBRARY_COMPILE) && defined(SUPPORT_ATTRIBUTE_VISIBILITY)
+#if defined(XINE_LIBRARY_COMPILE) && defined(SUPPORT_ATTRIBUTE_VISIBILITY_PROTECTED)
# define XINE_PROTECTED __attribute__((visibility("protected")))
+#elif defined(XINE_LIBRARY_COMPILE) && defined(SUPPORT_ATTRIBUTE_VISIBILITY_DEFAULT)
+# define XINE_PROTECTED __attribute__((visibility("default")))
#else
# define XINE_PROTECTED
#endif