From 2ae200aaccadf7ba9dd0caa211b65161489a4dde Mon Sep 17 00:00:00 2001 From: midipix Date: Sat, 23 Feb 2019 08:28:08 -0500 Subject: ptycon_api.h: PTYCON_STATIS now implies protected visibility. --- include/ptycon/ptycon_api.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'include') 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 -- cgit v1.2.3