Add alternatives for RtlGenRandom

This commit is contained in:
Andrea Mazzoleni 2016-04-01 22:12:47 +02:00
parent 10dba1356d
commit 8e2cb48ea7
2 changed files with 34 additions and 12 deletions

View file

@ -34,10 +34,10 @@
*/
#define __USE_MINGW_ANSI_STDIO 1
/*
* Define the MSVCRT version targetting Windows XP.
/**
* Define the MSVCRT version targetting Windows Vista.
*/
#define __MSVCRT_VERSION__ 0x0601
#define __MSVCRT_VERSION__ 0x0600
/**
* Include Windows Vista headers.
@ -46,6 +46,11 @@
*/
#define _WIN32_WINNT 0x600
/**
* Enable the rand_s() function.l
*/
#define _CRT_RAND_S
#include <windows.h>
#endif