aboutsummaryrefslogtreecommitdiff
path: root/src/port/open.c
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2022-09-28 21:59:15 -0700
committerAndres Freund <andres@anarazel.de>2022-09-28 21:59:15 -0700
commitb8d8a4593a3a2daa5e16e4a3634d9284fe14667f (patch)
tree30c34a20cb9e79e51bd67001ac7d5fe50f18206d /src/port/open.c
parenta1b3bca1c8e32c31ba1a8d1125b2eb97f750a7f0 (diff)
downloadpostgresql-b8d8a4593a3a2daa5e16e4a3634d9284fe14667f.tar.gz
postgresql-b8d8a4593a3a2daa5e16e4a3634d9284fe14667f.zip
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 <thomas.munro@gmail.com> Discussion: https://postgr.es/m/20220927011951.j3h4o7n6bhf7dwau@awork3.anarazel.de
Diffstat (limited to 'src/port/open.c')
-rw-r--r--src/port/open.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/port/open.c b/src/port/open.c
index 8c09c7c1f77..fd4faf604ea 100644
--- a/src/port/open.c
+++ b/src/port/open.c
@@ -13,8 +13,6 @@
#ifdef WIN32
-#define UMDF_USING_NTSTATUS
-
#ifndef FRONTEND
#include "postgres.h"
#else