summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2019-02-22 19:29:43 -0500
committermidipix <writeonce@midipix.org>2019-02-22 19:34:29 -0500
commit437e2542ecf1c8716335345b06f9cfe0806f2304 (patch)
tree5e9b6a16d3ca67bf55a952be5ef5c44dcdd6540e
parent7efa043c8d67603422ffea8b11625dbe2334cdea (diff)
downloaddalist-437e2542ecf1c8716335345b06f9cfe0806f2304.tar.bz2
dalist-437e2542ecf1c8716335345b06f9cfe0806f2304.tar.xz
dalist_api.h: DALIST_STATIC now implies protected visibility.
-rw-r--r--include/dalist/dalist_api.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/dalist/dalist_api.h b/include/dalist/dalist_api.h
index e14249a..bfa6dd9 100644
--- a/include/dalist/dalist_api.h
+++ b/include/dalist/dalist_api.h
@@ -18,13 +18,20 @@
#define dalist_import
#endif
+/* protected visibility */
+#if defined(__attr_protected__)
+#define dalist_protected __attr_protected__
+#else
+#define dalist_protected
+#endif
+
/* dalist_api */
#if defined (DALIST_EXPORT)
#define dalist_api dalist_export
#elif defined (DALIST_IMPORT)
#define dalist_api dalist_import
#elif defined (DALIST_STATIC)
-#define dalist_api
+#define dalist_api dalist_protected
#else
#define dalist_api
#endif