mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-20 18:22:09 +01:00
Fine, mingw! fine! are you happy now??
This commit is contained in:
parent
7ed477786c
commit
58cd21f601
@ -80,8 +80,12 @@ wint_t _getwch(void);
|
||||
#define WEOF (wchar_t)(0xFFFF)
|
||||
#endif
|
||||
#if defined(HAVE_DECL_SECUREZEROMEMORY) && !HAVE_DECL_SECUREZEROMEMORY
|
||||
#define SecureZeroMemory RtlSecureZeroMemory
|
||||
PVOID WINAPI SecureZeroMemory(PVOID ptr, SIZE_T cnt);
|
||||
static void inline SecureZeroMemory(PVOID ptr, SIZE_T cnt)
|
||||
{
|
||||
volatile char *vcptr = (volatile char*)ptr;
|
||||
while (cnt--)
|
||||
*vcptr++ = 0;
|
||||
}
|
||||
#endif
|
||||
#elif defined(HAVE_READPASSPHRASE_H)
|
||||
#include <readpassphrase.h>
|
||||
|
Loading…
Reference in New Issue
Block a user