• R/O
  • SSH

Tags
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. 637c26973ed73f73fa2f3c4e92278f04ca8bb7f7
Tamanho 1,144 bytes
Hora 2019-03-31 21:25:12
Autor Keith Marshall
Mensagem de Log

Initial commit.

Content

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

diff --git a/w32api/include/rpcnsi.h b/w32api/include/rpcnsi.h
--- a/w32api/include/rpcnsi.h
+++ b/w32api/include/rpcnsi.h
@@ -1,15 +1,21 @@
 #ifndef _RPCNSI_H
+#pragma GCC system_header
+
+#ifndef _RPC_H
+#ifndef __IN_W32API_TESTSUITE__
+#error "Do not include <rpcnsi.h> directly; use <rpc.h> instead."
+#endif
+#include <rpc.h>
+
+#else
 #define _RPCNSI_H
-#if __GNUC__ >=3
-#pragma GCC system_header
-#endif
 
-#ifdef __cplusplus
-extern "C" {
-#endif
+_BEGIN_C_DECLS
+
 typedef void *RPC_NS_HANDLE;
+
 #define RPC_C_NS_SYNTAX_DEFAULT 0
 #define RPC_C_NS_SYNTAX_DCE 3
 #define RPC_C_PROFILE_DEFAULT_ELT 0
 #define RPC_C_PROFILE_ALL_ELT 1
 #define RPC_C_PROFILE_MATCH_BY_IF 2
@@ -114,9 +120,10 @@ RPC_STATUS RPC_ENTRY RpcNsBindingImportB
 #define RpcNsProfileEltAdd RpcNsProfileEltAddA
 #define RpcNsProfileEltRemove RpcNsProfileEltRemoveA
 #define RpcNsProfileEltInqBegin RpcNsProfileEltInqBeginA
 #define RpcNsProfileEltInqNext RpcNsProfileEltInqNextA
 #endif
-#ifdef __cplusplus
-}
-#endif
-#endif
+
+_END_C_DECLS
+
+#endif	/* !_RPC_H */
+#endif	/* !_RPCNSI_H: $RCSfile$: endof file */