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