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

Handle w32api directory rename for 6.0-exp bookmark.

Content

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

diff --git a/wslapi/include/commdlg.h b/wslapi/include/commdlg.h
--- a/wslapi/include/commdlg.h
+++ b/wslapi/include/commdlg.h
@@ -2,13 +2,14 @@
 #define _COMMDLG_H
 #if __GNUC__ >=3
 #pragma GCC system_header
 #endif
 
-#ifdef __cplusplus
-extern "C" {
-#endif
+#include <winuser.h>
+
+_BEGIN_C_DECLS
+
 #pragma pack(push,1)
 
 #define LBSELCHSTRINGA  "commdlg_LBSelChangedNotify"
 #define SHAREVISTRINGA  "commdlg_ShareViolation"
 #define FILEOKSTRINGA   "commdlg_FileNameOK"
@@ -601,9 +602,9 @@ typedef PRINTDLGA PRINTDLG,*LPPRINTDLG;
 typedef PRINTDLGEXA PRINTDLGEX, *LPPRINTDLGEX;
 #define PrintDlgEx PrintDlgExA
 #endif /* WINVER >= 0x0500 */
 #endif /* UNICODE */
 #pragma pack(pop)
-#ifdef __cplusplus
-}
+
+_END_C_DECLS
+
 #endif
-#endif