public inbox for cygwin-cvs@sourceware.org help / color / mirror / Atom feed
From: Corinna Vinschen <corinna@sourceware.org> To: cygwin-cvs@sourceware.org Subject: [newlib-cygwin] Cygwin: set NTDDI_VERSION to enable more recent windows definitions Date: Wed, 26 May 2021 09:04:27 +0000 (GMT) [thread overview] Message-ID: <20210526090427.A008E3850415@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=88a2f9875a1e0d492e0d2d158dd3c92ff5a0b2fd commit 88a2f9875a1e0d492e0d2d158dd3c92ff5a0b2fd Author: Corinna Vinschen <corinna@vinschen.de> Date: Wed May 26 10:56:02 2021 +0200 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> Diff: --- winsup/cygwin/fhandler_tty.cc | 6 ------ winsup/cygwin/winlean.h | 6 ------ winsup/cygwin/winsup.h | 1 + 3 files changed, 1 insertion(+), 12 deletions(-) diff --git a/winsup/cygwin/fhandler_tty.cc b/winsup/cygwin/fhandler_tty.cc index 9c03e09a7..1ed41d3b2 100644 --- a/winsup/cygwin/fhandler_tty.cc +++ b/winsup/cygwin/fhandler_tty.cc @@ -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) \ diff --git a/winsup/cygwin/winlean.h b/winsup/cygwin/winlean.h index 338268607..de7305e26 100644 --- a/winsup/cygwin/winlean.h +++ b/winsup/cygwin/winlean.h @@ -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 *); diff --git a/winsup/cygwin/winsup.h b/winsup/cygwin/winsup.h index 0ffd8c5af..abdef3526 100644 --- a/winsup/cygwin/winsup.h +++ b/winsup/cygwin/winsup.h @@ -24,6 +24,7 @@ details. */ #define _WIN32_WINNT 0x0a00 #define WINVER 0x0a00 +#define NTDDI_VERSION WDK_NTDDI_VERSION #define _NO_W32_PSEUDO_MODIFIERS
reply other threads:[~2021-05-26 9:04 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20210526090427.A008E3850415@sourceware.org \ --to=corinna@sourceware.org \ --cc=cygwin-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).