summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/sal/types.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/sal/types.h b/include/sal/types.h
index 8810695b2819..e2517ae17ca2 100644
--- a/include/sal/types.h
+++ b/include/sal/types.h
@@ -268,7 +268,11 @@ typedef void * sal_Handle;
# define SAL_DLLPRIVATE __attribute__ ((visibility("hidden")))
# define SAL_DLLPUBLIC_TEMPLATE __attribute__ ((visibility("default")))
# if defined __clang__
-# define SAL_DLLPUBLIC_RTTI __attribute__ ((visibility("default")))
+# if __has_attribute(type_visibility)
+# define SAL_DLLPUBLIC_RTTI __attribute__ ((type_visibility("default")))
+# else
+# define SAL_DLLPUBLIC_RTTI __attribute__ ((visibility("default")))
+# endif
# else
# define SAL_DLLPUBLIC_RTTI
# endif