• R/O
  • SSH

标签
No Tags

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

Rev. e77cb33f187d5ad50a65a3d89ee9485d926347bc
大小 729 字节
时间 2019-04-02 03:25:55
作者 Keith Marshall
Log Message

Handle w32api directory rename for 6.0-exp bookmark.

Content

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

diff --git a/wslapi/include/nb30.h b/wslapi/include/nb30.h
--- a/wslapi/include/nb30.h
+++ b/wslapi/include/nb30.h
@@ -1,14 +1,13 @@
 #ifndef _NB30_H
 #define _NB30_H
-#if __GNUC__ >=3
 #pragma GCC system_header
-#endif
 
-#ifdef __cplusplus
-extern "C" {
-#endif
+#include <windef.h>
+
+_BEGIN_C_DECLS
+
 #define NCBNAMSZ 16
 #define MAX_LANA 254
 #define NAME_FLAGS_MASK 0x87
 #define GROUP_NAME 0x80
 #define UNIQUE_NAME 0x00
@@ -178,9 +177,9 @@ typedef struct _SESSION_HEADER {
 	UCHAR num_sess;
 	UCHAR rcv_dg_outstanding;
 	UCHAR rcv_any_outstanding;
 } SESSION_HEADER,*PSESSION_HEADER;
 UCHAR WINAPI Netbios(PNCB);
-#ifdef __cplusplus
-}
+
+_END_C_DECLS
+
 #endif
-#endif