summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2019-02-02 15:29:12 (GMT)
committermidipix <writeonce@midipix.org>2019-02-02 15:56:06 (GMT)
commit9efaa255a7fad33d56a3b1eee969b1ab3a4261e0 (patch)
tree0c8721e203b0c03fdb03785f93fb6f8a9584dd79
parent37e592e418d39c3538aa38364ef0b7b994be0e66 (diff)
downloadpemagine-9efaa255a7.tar.bz2
pemagine-9efaa255a7.tar.xz
ldso: apply hidden visibility to all public interfaces.
-rw-r--r--include/pemagine/pe_api.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/include/pemagine/pe_api.h b/include/pemagine/pe_api.h
index c6c456b..f7f9346 100644
--- a/include/pemagine/pe_api.h
+++ b/include/pemagine/pe_api.h
@@ -23,13 +23,22 @@
#define pe_import
#endif
+/* hidden visibility */
+#if defined(__attr_hidden__)
+#define pe_hidden __attr_hidden__
+#else
+#define pe_hidden
+#endif
+
/* pe_api */
-#if defined (PE_EXPORT)
+#if defined (PE_LDSO)
+#define pe_api pe_hidden
+#elif defined (PE_EXPORT)
#define pe_api pe_export
#elif defined (PE_IMPORT)
#define pe_api pe_import
#elif defined (PE_STATIC)
-#define pe_api
+#define pe_api pe_hidden
#else
#define pe_api
#endif