summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--project/extras.mk2
-rw-r--r--src/internal/ntapi_impl.h14
2 files changed, 8 insertions, 8 deletions
diff --git a/project/extras.mk b/project/extras.mk
index cebd464..84dd592 100644
--- a/project/extras.mk
+++ b/project/extras.mk
@@ -1,5 +1,5 @@
CFLAGS_SHARED_ATTR += -DNTAPI_EXPORT -DPE_IMPORT -DDALIST_IMPORT
-CFLAGS_STATIC_ATTR += -DNTAPI_STATIC -DPE_STATIC -DDALIST_STATIC -fvisibility=protected
+CFLAGS_STATIC_ATTR += -DNTAPI_STATIC -DPE_STATIC -DDALIST_STATIC
CFLAGS_CONFIG += -D_MIDIPIX_FREESTANDING -D__NT$(HOST_BITS)
CFLAGS_CONFIG += -UWIN32 -U_WIN32 -U__WIN32 -U__WIN32__
diff --git a/src/internal/ntapi_impl.h b/src/internal/ntapi_impl.h
index 18845a5..eb24dee 100644
--- a/src/internal/ntapi_impl.h
+++ b/src/internal/ntapi_impl.h
@@ -137,20 +137,20 @@ extern ntapi_vtbl ___ntapi_shadow;
/* access to library internals */
-ntapi_internals * __cdecl __ntapi_internals(void);
+__attr_protected__ ntapi_internals * __cdecl __ntapi_internals(void);
/* helper functions */
-int32_t __ntapi_tt_open_file_utf8(void ** hfile, void * hat, const char * arg, int fprivate, wchar16_t *, uint32_t);
-int32_t __ntapi_tt_open_dir_utf8(void ** hfile, void * hat, const char * arg, int fprivate, wchar16_t *, uint32_t);
+__attr_protected__ int32_t __ntapi_tt_open_file_utf8(void ** hfile, void * hat, const char * arg, int fprivate, wchar16_t *, uint32_t);
+__attr_protected__ int32_t __ntapi_tt_open_dir_utf8(void ** hfile, void * hat, const char * arg, int fprivate, wchar16_t *, uint32_t);
/* daemon internals */
-int32_t __ntapi_dsr_start(nt_daemon_params *);
-int32_t __ntapi_dsr_connect_internal_client(nt_daemon_params *);
-int32_t __ntapi_dsr_internal_client_connect(nt_daemon_params *);
+__attr_protected__ int32_t __ntapi_dsr_start(nt_daemon_params *);
+__attr_protected__ int32_t __ntapi_dsr_connect_internal_client(nt_daemon_params *);
+__attr_protected__ int32_t __ntapi_dsr_internal_client_connect(nt_daemon_params *);
/* ipc internals */
-int __ntapi_ipc_page_alloc(struct dalist_ex * dlist, void ** addr, size_t * alloc_size);
+__attr_protected__ int __ntapi_ipc_page_alloc(struct dalist_ex * dlist, void ** addr, size_t * alloc_size);
/* debug */
#define __ntidx(x) __offsetof(ntapi_vtbl,x) / sizeof(size_t)