[libcxx] r290775 - random: include __config before building

Saleem Abdulrasool via cfe-commits cfe-commits at lists.llvm.org
Fri Dec 30 16:00:22 PST 2016


Author: compnerd
Date: Fri Dec 30 18:00:21 2016
New Revision: 290775

URL: http://llvm.org/viewvc/llvm-project?rev=290775&view=rev
Log:
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.

Modified:
    libcxx/trunk/src/random.cpp

Modified: libcxx/trunk/src/random.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/src/random.cpp?rev=290775&r1=290774&r2=290775&view=diff
==============================================================================
--- libcxx/trunk/src/random.cpp (original)
+++ libcxx/trunk/src/random.cpp Fri Dec 30 18:00:21 2016
@@ -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




More information about the cfe-commits mailing list