random: include __config before building

We need to include __config to ensure that we know what random
implementation is being used.  Fixes compilation for Windows.

llvm-svn: 290775
This commit is contained in:
Saleem Abdulrasool 2016-12-31 00:00:21 +00:00
parent 991636312b
commit 4a12eab828
1 changed files with 2 additions and 0 deletions

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include <__config>
#if defined(_LIBCPP_USING_WIN32_RANDOM)
// Must be defined before including stdlib.h to enable rand_s().
#define _CRT_RAND_S