• 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
大小 815 bytes
時間 2019-04-02 03:25:55
作者 Keith Marshall
Log Message

Handle w32api directory rename for 6.0-exp bookmark.

Content

Make <lmstats.h> header effectively self-contained.

diff --git a/wslapi/include/lmstats.h b/wslapi/include/lmstats.h
--- a/wslapi/include/lmstats.h
+++ b/wslapi/include/lmstats.h
@@ -1,14 +1,13 @@
 #ifndef _LMSTATS_H
 #define _LMSTATS_H
-#if __GNUC__ >=3
 #pragma GCC system_header
-#endif
 
-#ifdef __cplusplus
-extern "C" {
-#endif
+#include <lmcons.h>
+
+_BEGIN_C_DECLS
+
 #define STATSOPT_CLR 1
 #define STATS_NO_VALUE ((ULONG)-1)
 #define STATS_OVERFLOW ((ULONG)-2)
 typedef struct _STAT_SERVER_0 {
 	DWORD sts0_start;
@@ -106,9 +105,9 @@ typedef struct _STAT_WORKSTATION_0 {
 	DWORD CurrentCommands;
 } STAT_WORKSTATION_0,*PSTAT_WORKSTATION_0,*LPSTAT_WORKSTATION_0;
 #endif
 
 NET_API_STATUS WINAPI NetStatisticsGet(LPWSTR,LPWSTR,DWORD,DWORD,PBYTE*);
-#ifdef __cplusplus
-}
+
+_END_C_DECLS
+
 #endif
-#endif