diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2016-12-14 14:14:28 +0100 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2016-12-14 14:14:28 +0100 |
commit | 86fc4bf065d2f71c955ba2356b5b442fec596014 (patch) | |
tree | d5be2f1d0031b9818daa7743b13fed01c9db1204 /winsup/cygwin/ntsecapi.h | |
parent | 74f7872f89dc8ecad500c5d5c4e03b4757f6418d (diff) | |
download | cygnal-86fc4bf065d2f71c955ba2356b5b442fec596014.tar.gz cygnal-86fc4bf065d2f71c955ba2356b5b442fec596014.tar.bz2 cygnal-86fc4bf065d2f71c955ba2356b5b442fec596014.zip |
Define RtlGenRandom correctly in ntsecapi.h wrapper
Include ntsecapi.h where required and just redefine RtlGenRandom
correctly in the ntsecapi.h wrapper.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'winsup/cygwin/ntsecapi.h')
-rw-r--r-- | winsup/cygwin/ntsecapi.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/winsup/cygwin/ntsecapi.h b/winsup/cygwin/ntsecapi.h new file mode 100644 index 000000000..8b0a7e77f --- /dev/null +++ b/winsup/cygwin/ntsecapi.h @@ -0,0 +1,26 @@ +#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 */ |