summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2019-02-22 19:37:25 -0500
committermidipix <writeonce@midipix.org>2019-02-22 19:37:25 -0500
commit63d01719cd85efc139aaa6a35ed9961f593417a5 (patch)
treef1d41efa7df13369d4892f702da8680200e13ac3 /include
parent4e98aea629859b117b64f11ac501ecb30987aa8c (diff)
downloadntcon-63d01719cd85efc139aaa6a35ed9961f593417a5.tar.bz2
ntcon-63d01719cd85efc139aaa6a35ed9961f593417a5.tar.xz
ntcon_api.h: NTCON_STATIC now implies protected visibility.
Diffstat (limited to 'include')
-rw-r--r--include/ntcon/ntcon_api.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/ntcon/ntcon_api.h b/include/ntcon/ntcon_api.h
index beb5a68..3c2bd00 100644
--- a/include/ntcon/ntcon_api.h
+++ b/include/ntcon/ntcon_api.h
@@ -18,13 +18,20 @@
#define ntcon_import
#endif
+/* protected visibility */
+#if defined(__attr_protected__)
+#define ntcon_protected __attr_protected__
+#else
+#define ntcon_protected
+#endif
+
/* ntcon_api */
#if defined (NTCON_EXPORT)
#define ntcon_api ntcon_export
#elif defined (NTCON_IMPORT)
#define ntcon_api ntcon_import
#elif defined (NTCON_STATIC)
-#define ntcon_api
+#define ntcon_api ntcon_protected
#else
#define ntcon_api
#endif