summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/ntapi/nt_api.h9
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