From 78440734029c40841904a05663c2c38e7b258214 Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Tue, 4 Feb 2014 14:49:21 +0000 Subject: Implemented support for Process::GetRandomNumber on Windows. Patch thanks to Stephan Tolksdorf! llvm-svn: 200767 --- llvm/lib/Support/Process.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'llvm/lib/Support/Process.cpp') diff --git a/llvm/lib/Support/Process.cpp b/llvm/lib/Support/Process.cpp index d5168f03a6d..1360842753d 100644 --- a/llvm/lib/Support/Process.cpp +++ b/llvm/lib/Support/Process.cpp @@ -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 +#endif #include "llvm/Support/ErrorHandling.h" #include "llvm/Support/Process.h" -- cgit v1.2.3