Mercurial Patch Queue for Windows System Libraries
Rev. | e77cb33f187d5ad50a65a3d89ee9485d926347bc |
---|---|
Größe | 865 Bytes |
Zeit | 2019-04-02 03:25:55 |
Autor | Keith Marshall |
Log Message | Handle w32api directory rename for 6.0-exp bookmark. |
Make <winperf.h> header effectively self-contained.
diff --git a/wslapi/include/winperf.h b/wslapi/include/winperf.h
--- a/wslapi/include/winperf.h
+++ b/wslapi/include/winperf.h
@@ -1,14 +1,13 @@
#ifndef _WINPERF_H
#define _WINPERF_H
-#if __GNUC__ >=3
#pragma GCC system_header
-#endif
-#ifdef __cplusplus
-extern "C" {
-#endif
+#include <winbase.h>
+
+_BEGIN_C_DECLS
+
#define PERF_DATA_VERSION 1
#define PERF_DATA_REVISION 1
#define PERF_NO_INSTANCES -1
#define PERF_SIZE_DWORD 0
#define PERF_SIZE_LARGE 256
@@ -131,9 +130,9 @@ typedef struct _PERF_COUNTER_BLOCK {
DWORD ByteLength;
} PERF_COUNTER_BLOCK, *PPERF_COUNTER_BLOCK;
typedef DWORD(CALLBACK PM_OPEN_PROC)(LPWSTR);
typedef DWORD(CALLBACK PM_COLLECT_PROC)(LPWSTR,PVOID*,PDWORD,PDWORD);
typedef DWORD(CALLBACK PM_CLOSE_PROC)(void);
-#ifdef __cplusplus
-}
+
+_END_C_DECLS
+
#endif
-#endif