postgresql/src/include/port
Andres Freund b8d8a4593a 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
2022-09-28 21:59:15 -07:00
..
atomics Remove uses of register due to incompatibility with C++17 and up 2022-09-24 12:08:37 -07:00
win32 Remove configure probe for netinet/tcp.h. 2022-08-18 16:31:11 +12:00
win32_msvc windows: msvc: Define STDIN/OUT/ERR_FILENO. 2022-07-18 17:21:54 -07:00
aix.h Attempt to work around a 32bit xlc compiler bug from a different place. 2015-08-08 01:19:02 +02:00
atomics.h Remove unused symbol __aarch64 2022-08-25 13:37:40 +07:00
cygwin.h Simplify declaring variables exported from libpgcommon and libpgport. 2021-11-29 11:00:00 -05:00
darwin.h Refer to OS X as "macOS", except for the port name which is still "darwin". 2016-09-25 15:40:57 -04:00
freebsd.h Remove configure probe for fdatasync. 2022-08-05 16:37:38 +12:00
linux.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
netbsd.h Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
openbsd.h Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
pg_bitutils.h Extend size_t support in pg_bitutils.h. 2022-07-22 09:40:39 +12:00
pg_bswap.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
pg_crc32c.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
pg_iovec.h Restore pg_pread and friends. 2022-09-29 13:12:11 +13:00
pg_lfind.h Fix broken cast on MSVC 2022-08-29 17:44:35 +07:00
pg_pthread.h Add missing pthread_barrier_t. 2021-03-10 17:44:04 +13:00
simd.h Fix sign-compare warnings arising from port/simd.h 2022-09-04 09:23:57 +07:00
solaris.h Remove obsolete HAVE_BUGGY_SOLARIS_STRTOD 2020-08-15 11:27:41 +02:00
win32.h Remove configure probes for sys/un.h and struct sockaddr_un. 2022-08-14 00:09:47 +12:00
win32_port.h windows: Set UMDF_USING_NTSTATUS globally, include ntstatus.h 2022-09-28 21:59:15 -07:00
win32ntdll.h windows: Set UMDF_USING_NTSTATUS globally, include ntstatus.h 2022-09-28 21:59:15 -07:00