Mercurial Patch Queue for Windows System Libraries
修訂. | e77cb33f187d5ad50a65a3d89ee9485d926347bc |
---|---|
大小 | 1,094 bytes |
時間 | 2019-04-02 03:25:55 |
作者 | Keith Marshall |
Log Message | Handle w32api directory rename for 6.0-exp bookmark. |
Make <objsafe.h> header effectively self-contained.
diff --git a/wslapi/include/objsafe.h b/wslapi/include/objsafe.h
--- a/wslapi/include/objsafe.h
+++ b/wslapi/include/objsafe.h
@@ -1,26 +1,23 @@
#ifndef _OBJSAFE_H
#define _OBJSAFE_H
-#if __GNUC__ >=3
#pragma GCC system_header
-#endif
-#ifdef __cplusplus
-extern "C" {
-#endif
+#include <unknwn.h>
-#define INTERFACESAFE_FOR_UNTRUSTED_CALLER 0x00000001
-#define INTERFACESAFE_FOR_UNTRUSTED_DATA 0x00000002
+_BEGIN_C_DECLS
+
+#define INTERFACESAFE_FOR_UNTRUSTED_CALLER 0x00000001
+#define INTERFACESAFE_FOR_UNTRUSTED_DATA 0x00000002
EXTERN_C const IID IID_IObjectSafety;
+
#define INTERFACE IObjectSafety
DECLARE_INTERFACE_(IObjectSafety,IUnknown)
-{
- STDMETHOD(GetInterfaceSafetyOptions)(THIS_ REFIID,DWORD*,DWORD*) PURE;
- STDMETHOD(SetInterfaceSafetyOptions)(THIS_ REFIID,DWORD,DWORD) PURE;
+{ STDMETHOD(GetInterfaceSafetyOptions)(THIS_ REFIID, DWORD *, DWORD *) PURE;
+ STDMETHOD(SetInterfaceSafetyOptions)(THIS_ REFIID, DWORD, DWORD) PURE;
};
#undef INTERFACE
-#ifdef __cplusplus
-}
+_END_C_DECLS
+
#endif
-#endif