Move ThreadLocal.h into the implementation
authorMichael Lee <mzlee@fb.com>
Mon, 21 Dec 2015 15:55:45 +0000 (07:55 -0800)
committerfacebook-github-bot-1 <folly-bot@fb.com>
Mon, 21 Dec 2015 16:20:21 +0000 (08:20 -0800)
Summary: Move ThreadLocal.h out of Random.h so we don't over include.

Reviewed By: yfeldblum

Differential Revision: D2770085

fb-gh-sync-id: e6934d606236c2b5cdde728639f372641ee716dc

folly/Random-inl.h
folly/Random.cpp
folly/Random.h
folly/test/FBVectorBenchmark.cpp
folly/test/FBVectorTest.cpp

index f3b0433be02ee07cf29dd0397a4d693160bfded6..a4baa958dd1a354c19f157408cd15790146e7449 100644 (file)
@@ -18,6 +18,8 @@
 #error This file may only be included from folly/Random.h
 #endif
 
+#include <array>
+
 namespace folly {
 
 namespace detail {
index 899668c8375f81ff4721ff30f771f6bc8d2f79cf..d1584f11edaa1de1f94351ab58816c299f100ebf 100644 (file)
@@ -26,6 +26,7 @@
 #include <glog/logging.h>
 #include <folly/File.h>
 #include <folly/FileUtil.h>
+#include <folly/ThreadLocal.h>
 
 #ifdef _MSC_VER
 # include <wincrypt.h>
index 552eccd25962a68e16ae92cd86433f5e27a78254..13bb2c4248f16b3073b04b0b4c6c4df8833c2759 100644 (file)
@@ -20,7 +20,7 @@
 #include <type_traits>
 #include <random>
 #include <stdint.h>
-#include <folly/ThreadLocal.h>
+#include <folly/Portability.h>
 
 #if FOLLY_HAVE_EXTRANDOM_SFMT19937
 #include <ext/random>
index 6548c3f40f0c4f18594bd09fb02e706fe5105237..1803df61486adb328b468dfbe2bd79dfd0a6c29c 100644 (file)
@@ -17,6 +17,7 @@
 //
 // Author: andrei.alexandrescu@fb.com
 
+#include <folly/Foreach.h>
 #include <folly/Traits.h>
 #include <folly/Random.h>
 #include <folly/FBString.h>
index ae8458347aa191ec9bd547ba8cdaa2b6919ffe56..ef3c69183b6d3f67bf5712feb0ccc9240a94035a 100644 (file)
@@ -17,6 +17,7 @@
 //
 // Author: andrei.alexandrescu@fb.com
 
+#include <folly/Foreach.h>
 #include <folly/Traits.h>
 #include <folly/Random.h>
 #include <folly/FBString.h>