Mercurial Patch Queue for Windows System Libraries
修訂. | e77cb33f187d5ad50a65a3d89ee9485d926347bc |
---|---|
大小 | 906 bytes |
時間 | 2019-04-02 03:25:55 |
作者 | Keith Marshall |
Log Message | Handle w32api directory rename for 6.0-exp bookmark. |
Make <security.h> header effectively self-contained.
diff --git a/wslapi/include/security.h b/wslapi/include/security.h
--- a/wslapi/include/security.h
+++ b/wslapi/include/security.h
@@ -1,11 +1,10 @@
#ifndef _SECURITY_H
#define _SECURITY_H
-#if __GNUC__ >=3
#pragma GCC system_header
-#endif
+#include <winbase.h>
#define SEC_E_OK 0
#define SEC_E_CERT_EXPIRED (-2146893016)
#define SEC_E_INCOMPLETE_MESSAGE (-2146893032)
#define SEC_E_INSUFFICIENT_MEMORY (-2146893056)
@@ -28,13 +27,14 @@
#define SEC_I_COMPLETE_NEEDED 590611
#define SEC_I_CONTINUE_NEEDED 590610
#define SEC_I_INCOMPLETE_CREDENTIALS 590624
/* always a char */
-typedef char SEC_CHAR;
-typedef wchar_t SEC_WCHAR;
-typedef long SECURITY_STATUS;
+typedef char SEC_CHAR;
+typedef wchar_t SEC_WCHAR;
+typedef long SECURITY_STATUS;
+
#define SEC_FAR
#include <sspi.h>
#include <ntsecpkg.h>
#include <secext.h>