• R/O
  • SSH

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Mercurial Patch Queue for Windows System Libraries


File Info

修訂. e77cb33f187d5ad50a65a3d89ee9485d926347bc
大小 999 bytes
時間 2019-04-02 03:25:55
作者 Keith Marshall
Log Message

Handle w32api directory rename for 6.0-exp bookmark.

Content

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 */