Cygwin: utils: override definition of PMEM_EXTENDED_PARAMETER

PMEM_EXTENDED_PARAMETER is defined in the local winlean.h as long
as mingw-w64 doesn't define it (in winnt.h).  ntdll.h needs the
definition for declaring NtMapViewOfSectionEx.  cygpath.cc and ps.cc
both include ntdll.h but not winlean.h, so they complain about the
missing definition.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen 2020-04-07 18:54:59 +02:00
parent 3fe9b02ccd
commit 3d1360113d
2 changed files with 2 additions and 0 deletions

View File

@ -24,6 +24,7 @@ details. */
#define _WIN32_WINNT 0x0a00 #define _WIN32_WINNT 0x0a00
#define WINVER 0x0a00 #define WINVER 0x0a00
#define NOCOMATTRIBUTE #define NOCOMATTRIBUTE
#define PMEM_EXTENDED_PARAMETER PVOID
#include <windows.h> #include <windows.h>
#include <userenv.h> #include <userenv.h>
#include <shlobj.h> #include <shlobj.h>

View File

@ -6,6 +6,7 @@ This software is a copyrighted work licensed under the terms of the
Cygwin license. Please consult the file "CYGWIN_LICENSE" for Cygwin license. Please consult the file "CYGWIN_LICENSE" for
details. */ details. */
#define PMEM_EXTENDED_PARAMETER PVOID
#include <errno.h> #include <errno.h>
#include <stdio.h> #include <stdio.h>
#include <locale.h> #include <locale.h>