[newlib-cygwin] Cygwin: set NTDDI_VERSION to enable more recent windows definitions

Corinna Vinschen corinna@sourceware.org
Wed May 26 09:04:27 GMT 2021


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


More information about the Cygwin-cvs mailing list