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:
parent
1adb3f11b7
commit
88a2f9875a
|
@ -35,12 +35,6 @@ details. */
|
||||||
|
|
||||||
extern "C" int sscanf (const char *, const char *, ...);
|
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) \
|
#define close_maybe(h) \
|
||||||
do { \
|
do { \
|
||||||
if (h && h != INVALID_HANDLE_VALUE) \
|
if (h && h != INVALID_HANDLE_VALUE) \
|
||||||
|
|
|
@ -104,12 +104,6 @@ extern "C" {
|
||||||
#error "Version >= 8 of the w32api headers is required"
|
#error "Version >= 8 of the w32api headers is required"
|
||||||
#endif
|
#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
|
/* IsWow64Process2 should be declared in <w32api/wow64apiset.h> but
|
||||||
isn't yet. */
|
isn't yet. */
|
||||||
BOOL WINAPI IsWow64Process2(HANDLE, USHORT *, USHORT *);
|
BOOL WINAPI IsWow64Process2(HANDLE, USHORT *, USHORT *);
|
||||||
|
|
|
@ -24,6 +24,7 @@ details. */
|
||||||
|
|
||||||
#define _WIN32_WINNT 0x0a00
|
#define _WIN32_WINNT 0x0a00
|
||||||
#define WINVER 0x0a00
|
#define WINVER 0x0a00
|
||||||
|
#define NTDDI_VERSION WDK_NTDDI_VERSION
|
||||||
|
|
||||||
#define _NO_W32_PSEUDO_MODIFIERS
|
#define _NO_W32_PSEUDO_MODIFIERS
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue