diff options
author | midipix <writeonce@midipix.org> | 2019-02-22 19:36:13 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2019-02-22 19:36:13 -0500 |
commit | 9a9511229ba1602bfccf8aba4b93c891221c167d (patch) | |
tree | 816914b10d07e21d7adaa86a2e8c815ef9d0bca2 | |
parent | abcf16233c6a45e971742ee964411437e06b0751 (diff) | |
download | ntapi-9a9511229ba1602bfccf8aba4b93c891221c167d.tar.bz2 ntapi-9a9511229ba1602bfccf8aba4b93c891221c167d.tar.xz |
nt_api.h: NTAPI_STATIC now implies protected visibility.
-rw-r--r-- | include/ntapi/nt_api.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/ntapi/nt_api.h b/include/ntapi/nt_api.h index 45d895a..df491e6 100644 --- a/include/ntapi/nt_api.h +++ b/include/ntapi/nt_api.h @@ -4,12 +4,19 @@ #include "nt_abi.h" #include "nt_compiler.h" +/* protected visibility */ +#if defined(__attr_protected__) +#define ntapi_protected __attr_protected__ +#else +#define ntapi_protected +#endif + #if defined (NTAPI_EXPORT) #define __ntapi_api __attr_export__ #elif defined (NTAPI_IMPORT) #define __ntapi_api __attr_import__ #elif defined (NTAPI_STATIC) -#define __ntapi_api +#define __ntapi_api ntapi_protected #else #define __ntapi_api #endif |