Mercurial Patch Queue for Windows System Libraries
修訂. | e77cb33f187d5ad50a65a3d89ee9485d926347bc |
---|---|
大小 | 999 bytes |
時間 | 2019-04-02 03:25:55 |
作者 | Keith Marshall |
Log Message | Handle w32api directory rename for 6.0-exp bookmark. |
Make <subauth.h> header effectively self-contained.
diff --git a/wslapi/include/subauth.h b/wslapi/include/subauth.h
--- a/wslapi/include/subauth.h
+++ b/wslapi/include/subauth.h
@@ -1,14 +1,13 @@
#ifndef _SUBAUTH_H
#define _SUBAUTH_H
-#if __GNUC__ >=3
#pragma GCC system_header
-#endif
-#ifdef __cplusplus
-extern "C" {
-#endif
+#include <windef.h>
+
+_BEGIN_C_DECLS
+
#ifndef NT_SUCCESS
#define NT_SUCCESS(x) ((x)>=0)
#define STATUS_SUCCESS 0
#endif
#define CYPHER_BLOCK_LENGTH 8
@@ -201,9 +200,9 @@ NTSTATUS NTAPI Msv1_0SubAuthenticationFi
PBOOLEAN,PLARGE_INTEGER,PLARGE_INTEGER);
NTSTATUS NTAPI Msv1_0SubAuthenticationRoutineGeneric(PVOID,ULONG,PULONG,PVOID*);
NTSTATUS NTAPI Msv1_0SubAuthenticationRoutineEx(NETLOGON_LOGON_INFO_CLASS,PVOID,
ULONG,PUSER_ALL_INFORMATION,SAM_HANDLE,
PMSV1_0_VALIDATION_INFO,PULONG);
-#ifdef __cplusplus
-}
-#endif
+
+_END_C_DECLS
+
#endif /* _SUBAUTH_H */