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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user