Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit af9e633

Browse filesBrowse files
committed
Add missing include guard to win32ntdll.h.
Oversight in commit e2f0f8e. 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 <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/2760528.1641929756%40sss.pgh.pa.us
1 parent 6f6943f commit af9e633
Copy full SHA for af9e633

File tree

Expand file treeCollapse file tree

3 files changed

+7
-0
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+7
-0
lines changed

‎src/include/port/win32ntdll.h

Copy file name to clipboardExpand all lines: src/include/port/win32ntdll.h
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
*-------------------------------------------------------------------------
1212
*/
1313

14+
#ifndef WIN32NTDLL_H
15+
#define WIN32NTDLL_H
16+
1417
/*
1518
* Because this includes NT headers that normally conflict with Win32 headers,
1619
* any translation unit that includes it should #define UMDF_USING_NTSTATUS
@@ -25,3 +28,5 @@ typedef NTSTATUS (__stdcall *RtlGetLastNtStatus_t) (void);
2528
extern RtlGetLastNtStatus_t pg_RtlGetLastNtStatus;
2629

2730
extern int initialize_ntdll(void);
31+
32+
#endif /* WIN32NTDLL_H */

‎src/tools/pginclude/cpluspluscheck

Copy file name to clipboardExpand all lines: src/tools/pginclude/cpluspluscheck
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ do
7575
test "$f" = src/include/port/win32/sys/socket.h && continue
7676
test "$f" = src/include/port/win32_msvc/dirent.h && continue
7777
test "$f" = src/include/port/win32_msvc/utime.h && continue
78+
test "$f" = src/include/port/win32ntdll.h && continue
7879
test "$f" = src/port/pthread-win32.h && continue
7980

8081
# Likewise, these files are platform-specific, and the one

‎src/tools/pginclude/headerscheck

Copy file name to clipboardExpand all lines: src/tools/pginclude/headerscheck
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ do
7171
test "$f" = src/include/port/win32/sys/socket.h && continue
7272
test "$f" = src/include/port/win32_msvc/dirent.h && continue
7373
test "$f" = src/include/port/win32_msvc/utime.h && continue
74+
test "$f" = src/include/port/win32ntdll.h && continue
7475
test "$f" = src/port/pthread-win32.h && continue
7576

7677
# Likewise, these files are platform-specific, and the one

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.