From 2ce1a56c40564c7e99f94b23d027e29c56695172 Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Tue, 26 May 2020 18:39:55 +0200 Subject: [PATCH] config: rename macro 'WEPOLL_INTERNAL_VAR' to 'WEPOLL_INTERNAL_EXTERN' The old name was not really appropriate; this attribute should only be used on variable declarations, while the definition of the same variable needs to be tagged with 'WEPOLL_INTERNAL'. --- config/internal/bundle/config-internal.h | 2 +- config/internal/default/config-internal.h | 2 +- src/nt.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/internal/bundle/config-internal.h b/config/internal/bundle/config-internal.h index d14707d..88abc63 100644 --- a/config/internal/bundle/config-internal.h +++ b/config/internal/bundle/config-internal.h @@ -1,2 +1,2 @@ #define WEPOLL_INTERNAL static -#define WEPOLL_INTERNAL_VAR static +#define WEPOLL_INTERNAL_EXTERN static diff --git a/config/internal/default/config-internal.h b/config/internal/default/config-internal.h index 8d58100..e8adda2 100644 --- a/config/internal/default/config-internal.h +++ b/config/internal/default/config-internal.h @@ -1,2 +1,2 @@ #define WEPOLL_INTERNAL -#define WEPOLL_INTERNAL_VAR extern +#define WEPOLL_INTERNAL_EXTERN extern diff --git a/src/nt.h b/src/nt.h index 8c31882..4e66548 100644 --- a/src/nt.h +++ b/src/nt.h @@ -132,7 +132,7 @@ typedef struct _OBJECT_ATTRIBUTES { X(ULONG, WINAPI, RtlNtStatusToDosError, (NTSTATUS Status)) #define X(return_type, attributes, name, parameters) \ - WEPOLL_INTERNAL_VAR return_type(attributes* name) parameters; + WEPOLL_INTERNAL_EXTERN return_type(attributes* name) parameters; NT_NTDLL_IMPORT_LIST(X) #undef X