From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2155) id A008E3850415; Wed, 26 May 2021 09:04:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A008E3850415 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Corinna Vinschen To: cygwin-cvs@sourceware.org Subject: [newlib-cygwin] Cygwin: set NTDDI_VERSION to enable more recent windows definitions X-Act-Checkin: newlib-cygwin X-Git-Author: Corinna Vinschen X-Git-Refname: refs/heads/master X-Git-Oldrev: 1adb3f11b7faeee370e51ffdfb1fcd1dd8ef4d93 X-Git-Newrev: 88a2f9875a1e0d492e0d2d158dd3c92ff5a0b2fd Message-Id: <20210526090427.A008E3850415@sourceware.org> Date: Wed, 26 May 2021 09:04:27 +0000 (GMT) X-BeenThere: cygwin-cvs@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Cygwin core component git logs List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 May 2021 09:04:27 -0000 https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=88a2f9875a1e0d492e0d2d158dd3c92ff5a0b2fd commit 88a2f9875a1e0d492e0d2d158dd3c92ff5a0b2fd Author: Corinna Vinschen 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 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 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 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