summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libcxx/src/random.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/libcxx/src/random.cpp b/libcxx/src/random.cpp
index 4ab424eaa6e..eb2510a48c8 100644
--- a/libcxx/src/random.cpp
+++ b/libcxx/src/random.cpp
@@ -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
OpenPOWER on IntegriCloud