diff options
author | Thomas Munro | 2022-01-11 21:11:50 +0000 |
---|---|---|
committer | Thomas Munro | 2022-01-11 21:19:00 +0000 |
commit | af9e6331aeba149c93052c3549140082a85a3cf9 (patch) | |
tree | a2b2052e23c1d85180c577ee0b00d4d4fb61d150 /src/include/port/win32ntdll.h | |
parent | 6f6943fc94ada145c0af5f62f719abad73825e5b (diff) |
Add missing include guard to win32ntdll.h.
Oversight in commit e2f0f8ed. Also add this file to the exclusion lists
in headerscheck and cpluscpluscheck, because Unix systems don't have a
header it includes.
Reported-by: Tom Lane <[email protected]>
Discussion: https://postgr.es/m/2760528.1641929756%40sss.pgh.pa.us
Diffstat (limited to 'src/include/port/win32ntdll.h')
-rw-r--r-- | src/include/port/win32ntdll.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/include/port/win32ntdll.h b/src/include/port/win32ntdll.h index ebfd2c1583e..663b9754bd7 100644 --- a/src/include/port/win32ntdll.h +++ b/src/include/port/win32ntdll.h @@ -11,6 +11,9 @@ *------------------------------------------------------------------------- */ +#ifndef WIN32NTDLL_H +#define WIN32NTDLL_H + /* * Because this includes NT headers that normally conflict with Win32 headers, * any translation unit that includes it should #define UMDF_USING_NTSTATUS @@ -25,3 +28,5 @@ typedef NTSTATUS (__stdcall *RtlGetLastNtStatus_t) (void); extern RtlGetLastNtStatus_t pg_RtlGetLastNtStatus; extern int initialize_ntdll(void); + +#endif /* WIN32NTDLL_H */ |