4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-03-03 21:45:51 +08:00

Cygwin: remove ntsecapi.h

This was a wrapper for w32api/ntsecapi.h.  It was introduced to fix a
bug that only affected 32-bit Cygwin, so it is no longer needed.
This commit is contained in:
Ken Brown 2022-06-06 10:44:01 -04:00
parent 1f8235f6ba
commit cb4b4548c8

View File

@ -1,26 +0,0 @@
#ifndef _CYGWIN_NTSECAPI_H
#define _CYGWIN_NTSECAPI_H
/* There's a bug in ntsecapi.h (Mingw as well as MSFT). SystemFunction036
is, in fact, a WINAPI function, but it's not defined as such. Therefore
we have to do it correctly here in the ntsecapi.h wrapper. */
#define SystemFunction036 __nonexistant_SystemFunction036__
#include_next <ntsecapi.h>
#undef SystemFunction036
#define RtlGenRandom SystemFunction036
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
BOOLEAN WINAPI RtlGenRandom (PVOID, ULONG);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* _CYGWIN_NTSECAPI_H */