summaryrefslogtreecommitdiff
path: root/include/xine/attributes.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/xine/attributes.h')
-rw-r--r--include/xine/attributes.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/xine/attributes.h b/include/xine/attributes.h
index 2326dab18..9f02d9b7b 100644
--- a/include/xine/attributes.h
+++ b/include/xine/attributes.h
@@ -66,6 +66,15 @@
# define XINE_PROTECTED
#endif
+/* Export hidden only for private/internal libxine functions */
+#if defined(XINE_LIBRARY_COMPILE) && defined(SUPPORT_ATTRIBUTE_VISIBILITY_INTERNAL)
+# define XINE_INTERNAL __attribute__((__visibility__("internal")))
+#elif defined(XINE_LIBRARY_COMPILE) && defined(SUPPORT_ATTRIBUTE_VISIBILITY_DEFAULT)
+# define XINE_INTERNAL __attribute__((__visibility__("default")))
+#else
+# define XINE_INTERNAL
+#endif
+
#ifdef SUPPORT_ATTRIBUTE_SENTINEL
# define XINE_SENTINEL __attribute__((__sentinel__))
#else