Mercurial Patch Queue for Windows System Libraries
Rev. | e77cb33f187d5ad50a65a3d89ee9485d926347bc |
---|---|
大小 | 899 字节 |
时间 | 2019-04-02 03:25:55 |
作者 | Keith Marshall |
Log Message | Handle w32api directory rename for 6.0-exp bookmark. |
Make <winnetwk.h> header effectively self-contained.
diff --git a/wslapi/include/winnetwk.h b/wslapi/include/winnetwk.h
--- a/wslapi/include/winnetwk.h
+++ b/wslapi/include/winnetwk.h
@@ -1,14 +1,13 @@
#ifndef _WINNETWK_H
#define _WINNETWK_H
-#if __GNUC__ >=3
#pragma GCC system_header
-#endif
-#ifdef __cplusplus
-extern "C" {
-#endif
+#include <windef.h>
+
+_BEGIN_C_DECLS
+
#define WNNC_NET_MSNET 0x00010000
#define WNNC_NET_LANMAN 0x00020000
#define WNNC_NET_NETWARE 0x00030000
#define WNNC_NET_VINES 0x00040000
#define WNNC_NET_10NET 0x00050000
@@ -342,9 +341,9 @@ typedef REMOTE_NAME_INFOA REMOTE_NAME_IN
#define WNetGetNetworkInformation WNetGetNetworkInformationA
#define WNetGetLastError WNetGetLastErrorA
#define MultinetGetConnectionPerformance MultinetGetConnectionPerformanceA
#endif
#endif
-#ifdef __cplusplus
-}
+
+_END_C_DECLS
+
#endif
-#endif