Mercurial Patch Queue for Windows System Libraries
Rev. | 637c26973ed73f73fa2f3c4e92278f04ca8bb7f7 |
---|---|
Tamanho | 934 bytes |
Hora | 2019-03-31 21:25:12 |
Autor | Keith Marshall |
Mensagem de Log | Initial commit. |
Make <iphlpapi.h> header effectively self-contained.
diff --git a/w32api/include/iphlpapi.h b/w32api/include/iphlpapi.h
--- a/w32api/include/iphlpapi.h
+++ b/w32api/include/iphlpapi.h
@@ -1,17 +1,15 @@
#ifndef _IPHLPAPI_H
#define _IPHLPAPI_H
-#if __GNUC__ >=3
#pragma GCC system_header
-#endif
+#include <winbase.h>
+#include <ipexport.h>
#include <iprtrmib.h>
-#include <ipexport.h>
#include <iptypes.h>
-#ifdef __cplusplus
-extern "C" {
-#endif
+
+_BEGIN_C_DECLS
#if (_WIN32_WINNT >= 0x0501)
#define GAA_FLAG_SKIP_UNICAST 0x00000001
#define GAA_FLAG_SKIP_ANYCAST 0x00000002
#define GAA_FLAG_SKIP_MULTICAST 0x00000004
@@ -69,9 +67,8 @@ DWORD WINAPI SetIpNetEntry(PMIB_IPNETROW
DWORD WINAPI SetIpStatistics(PMIB_IPSTATS);
DWORD WINAPI SetIpTTL(UINT);
DWORD WINAPI SetTcpEntry(PMIB_TCPROW);
DWORD WINAPI UnenableRouter(OVERLAPPED*, LPDWORD);
-#ifdef __cplusplus
-}
-#endif
+_END_C_DECLS
+
#endif /* _IPHLPAPI_H */