Cygwin: set NTDDI_VERSION to enable more recent windows definitions

Set to WDK_NTDDI_VERSION since that enables all the latest.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen 2021-05-26 10:56:02 +02:00
parent 1adb3f11b7
commit 88a2f9875a
3 changed files with 1 additions and 12 deletions

View File

@ -35,12 +35,6 @@ details. */
extern "C" int sscanf (const char *, const char *, ...);
extern "C" {
HRESULT WINAPI CreatePseudoConsole (COORD, HANDLE, HANDLE, DWORD, HPCON *);
HRESULT WINAPI ResizePseudoConsole (HPCON, COORD);
VOID WINAPI ClosePseudoConsole (HPCON);
}
#define close_maybe(h) \
do { \
if (h && h != INVALID_HANDLE_VALUE) \

View File

@ -104,12 +104,6 @@ extern "C" {
#error "Version >= 8 of the w32api headers is required"
#endif
/* VirtualAlloc2 is declared in <w32api/memoryapi.h> if NTDDI_VERSION
>= NTDDI_WIN10_RS4 (a compile-time condition). But we need the
declaration unconditionally, even though the function will only be
executed on systems that support it (a run-time condition). */
PVOID WINAPI VirtualAlloc2 (HANDLE, PVOID, SIZE_T, ULONG, ULONG,
PMEM_EXTENDED_PARAMETER, ULONG);
/* IsWow64Process2 should be declared in <w32api/wow64apiset.h> but
isn't yet. */
BOOL WINAPI IsWow64Process2(HANDLE, USHORT *, USHORT *);

View File

@ -24,6 +24,7 @@ details. */
#define _WIN32_WINNT 0x0a00
#define WINVER 0x0a00
#define NTDDI_VERSION WDK_NTDDI_VERSION
#define _NO_W32_PSEUDO_MODIFIERS