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.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@290775 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Saleem Abdulrasool
2016-12-31 00:00:21 +00:00
parent 51dfbbc517
commit 04674ef99b

View File

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