Implemented support for Process::GetRandomNumber on Windows.

Patch thanks to Stephan Tolksdorf!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200767 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Aaron Ballman
2014-02-04 14:49:21 +00:00
parent 055e70063b
commit 8753ba91d2
3 changed files with 19 additions and 0 deletions

View File

@ -12,6 +12,11 @@
//===----------------------------------------------------------------------===//
#include "llvm/Config/config.h"
#if LLVM_ON_WIN32
// This define makes stdlib.h declare the rand_s function.
#define _CRT_RAND_S
#include <stdlib.h>
#endif
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/Process.h"