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

Handle w32api directory rename for 6.0-exp bookmark.

Content

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

diff --git a/wslapi/include/ntdll.h b/wslapi/include/ntdll.h
--- a/wslapi/include/ntdll.h
+++ b/wslapi/include/ntdll.h
@@ -1,15 +1,15 @@
 #ifndef _NTDLL_H
 #define _NTDLL_H
-#if __GNUC__ >=3
 #pragma GCC system_header
-#endif
 
-typedef enum _SHUTDOWN_ACTION {
-     ShutdownNoReboot,
-     ShutdownReboot,
-     ShutdownPowerOff
- } SHUTDOWN_ACTION;
+#include <windef.h>
+
+typedef enum _SHUTDOWN_ACTION
+{ ShutdownNoReboot,
+  ShutdownReboot,
+  ShutdownPowerOff
+} SHUTDOWN_ACTION;
 
 DWORD WINAPI NtShutdownSystem (SHUTDOWN_ACTION Action);
 
 #endif /* _NTDLL_H */