diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2012-06-27 17:19:11 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2012-06-27 17:19:11 +0400 |
commit | 25f3ea84f8170ef2f5cb4aba11f547723f360760 (patch) | |
tree | c38d060e69aa687e39cb5499e79354af7b91393c /winsup/cygwin/advapi32.cc | |
parent | a90b8a20ed988808488962636b9c6c8665cb9413 (diff) |
* advapi32.cc (_ADVAPI32_): Define. Explain why.
(ImpersonateNamedPipeClient): Add missing WINAPI.
* ntdll.h (STATUS_INVALID_PARAMETER): Only define if it isn't already.
(STATUS_DLL_NOT_FOUND): Ditto.
(STATUS_ENTRYPOINT_NOT_FOUND): Ditto.
(enum _EVENT_TYPE): Guard against redefinition since it's already
defined in Mingw64's ntdef.h.
(enum _TIMER_TYPE): Ditto.
(enum _SECTION_INHERIT): Define if using Mingw64 headers since it's
missing in Mingw64's ntdef.h.
* winlean.h (__STRALIGN_H_): Define before including windows.h.
Diffstat (limited to 'winsup/cygwin/advapi32.cc')
-rw-r--r-- | winsup/cygwin/advapi32.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/winsup/cygwin/advapi32.cc b/winsup/cygwin/advapi32.cc index 47913a031..07a11a513 100644 --- a/winsup/cygwin/advapi32.cc +++ b/winsup/cygwin/advapi32.cc @@ -1,6 +1,6 @@ /* advapi32.cc: Win32 replacement functions. - Copyright 2011 Red Hat, Inc. + Copyright 2011, 2012 Red Hat, Inc. This file is part of Cygwin. @@ -8,6 +8,10 @@ This software is a copyrighted work licensed under the terms of the Cygwin license. Please consult the file "CYGWIN_LICENSE" for details. */ +/* This define is required to tell the mingw64 headers (or, FWIW, the + Microsoft headers) to omit declspec(dllimport) from advapi declarations. */ +#define _ADVAPI32_ + #include "winsup.h" #include <winioctl.h> #include "shared_info.h" @@ -89,7 +93,7 @@ ImpersonateLoggedOnUser (HANDLE tok) DEFAULT_NTSTATUS_TO_BOOL_RETURN } -BOOL +BOOL WINAPI ImpersonateNamedPipeClient (HANDLE pipe) { IO_STATUS_BLOCK io; |