diff options
author | midipix <writeonce@midipix.org> | 2019-02-23 08:28:08 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2019-02-23 08:46:56 -0500 |
commit | 2ae200aaccadf7ba9dd0caa211b65161489a4dde (patch) | |
tree | 4e19c6ec60b6231a425b0c577fea0bf40c9300e4 | |
parent | 25df51cb380bd01bb4302855d1d3bf40d77009a4 (diff) | |
download | ptycon-2ae200aaccadf7ba9dd0caa211b65161489a4dde.tar.bz2 ptycon-2ae200aaccadf7ba9dd0caa211b65161489a4dde.tar.xz |
ptycon_api.h: PTYCON_STATIS now implies protected visibility.
-rw-r--r-- | include/ptycon/ptycon_api.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/ptycon/ptycon_api.h b/include/ptycon/ptycon_api.h index bdc7bc1..0f8ae91 100644 --- a/include/ptycon/ptycon_api.h +++ b/include/ptycon/ptycon_api.h @@ -15,6 +15,13 @@ #define ptyc_import #endif +/* protected visibility */ +#if defined(__attr_protected__) +#define ptyc_protected __attr_protected__ +#else +#define ptyc_protected +#endif + /* ptyc_api */ #ifndef PTYC_APP #if defined (PTYC_EXPORT) @@ -22,7 +29,7 @@ #elif defined (PTYC_IMPORT) #define ptyc_api ptyc_import #elif defined (PTYC_STATIC) -#define ptyc_api +#define ptyc_api ptyc_protected #else #define ptyc_api #endif |