summaryrefslogtreecommitdiffhomepage
path: root/src/internal/slibtool_visibility_impl.h
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-02-18 07:06:15 +0000
committermidipix <writeonce@midipix.org>2024-02-18 07:37:54 +0000
commit4b56dee0873d57ed2a0891a4a2370d20d46845c3 (patch)
tree36b1645696d42bed98625964f471ad8cbcdb19fe /src/internal/slibtool_visibility_impl.h
parentd603a45e5710cc897681c3395188d7376593dcbe (diff)
downloadslibtool-4b56dee0873d57ed2a0891a4a2370d20d46845c3.tar.bz2
slibtool-4b56dee0873d57ed2a0891a4a2370d20d46845c3.tar.xz
code base: set the visilbity of internal library interfaces to hidden.
Diffstat (limited to 'src/internal/slibtool_visibility_impl.h')
-rw-r--r--src/internal/slibtool_visibility_impl.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/internal/slibtool_visibility_impl.h b/src/internal/slibtool_visibility_impl.h
new file mode 100644
index 0000000..7b1e50f
--- /dev/null
+++ b/src/internal/slibtool_visibility_impl.h
@@ -0,0 +1,10 @@
+#ifndef SLIBTOOL_VISIBILITY_IMPL_H
+#define SLIBTOOL_VISIBILITY_IMPL_H
+
+#ifdef _ATTR_VISIBILITY_HIDDEN
+#define slbt_hidden _ATTR_VISIBILITY_HIDDEN
+#else
+#define slbt_hidden
+#endif
+
+#endif