summaryrefslogtreecommitdiff
path: root/src/include/port/win32ntdll.h
diff options
context:
space:
mode:
authorAndres Freund2022-09-29 04:59:15 +0000
committerAndres Freund2022-09-29 04:59:15 +0000
commitb8d8a4593a3a2daa5e16e4a3634d9284fe14667f (patch)
tree30c34a20cb9e79e51bd67001ac7d5fe50f18206d /src/include/port/win32ntdll.h
parenta1b3bca1c8e32c31ba1a8d1125b2eb97f750a7f0 (diff)
windows: Set UMDF_USING_NTSTATUS globally, include ntstatus.h
We'd like to use precompiled headers on windows to reduce compile times. Right now we rely on defining UMDF_USING_NTSTATUS before including postgres.h in a few select places - which doesn't work with precompiled headers. Instead define it globally. When UMDF_USING_NTSTATUS is defined we need to explicitly include ntstatus.h, winternl.h to get a comparable set of symbols. Right now these includes would be required in a number of non-platform-specific .c files - to avoid that, include them in win32_port.h. Based on my measurements that doesn't increase compile times measurably. Reviewed-by: Thomas Munro <[email protected]> Discussion: https://postgr.es/m/[email protected]
Diffstat (limited to 'src/include/port/win32ntdll.h')
-rw-r--r--src/include/port/win32ntdll.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/include/port/win32ntdll.h b/src/include/port/win32ntdll.h
index 34cebddd542..6d13a18b395 100644
--- a/src/include/port/win32ntdll.h
+++ b/src/include/port/win32ntdll.h
@@ -14,12 +14,6 @@
#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
- * before including <windows.h>.
- */
-
#include <ntstatus.h>
#include <winternl.h>