From: Michael Lee Date: Mon, 21 Dec 2015 15:55:45 +0000 (-0800) Subject: Move ThreadLocal.h into the implementation X-Git-Tag: deprecate-dynamic-initializer~179 X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=49e4875c1e7d55df5913410539d299b7aa3c62bc;p=folly.git Move ThreadLocal.h into the implementation 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 --- diff --git a/folly/Random-inl.h b/folly/Random-inl.h index f3b0433b..a4baa958 100644 --- a/folly/Random-inl.h +++ b/folly/Random-inl.h @@ -18,6 +18,8 @@ #error This file may only be included from folly/Random.h #endif +#include + namespace folly { namespace detail { diff --git a/folly/Random.cpp b/folly/Random.cpp index 899668c8..d1584f11 100644 --- a/folly/Random.cpp +++ b/folly/Random.cpp @@ -26,6 +26,7 @@ #include #include #include +#include #ifdef _MSC_VER # include diff --git a/folly/Random.h b/folly/Random.h index 552eccd2..13bb2c42 100644 --- a/folly/Random.h +++ b/folly/Random.h @@ -20,7 +20,7 @@ #include #include #include -#include +#include #if FOLLY_HAVE_EXTRANDOM_SFMT19937 #include diff --git a/folly/test/FBVectorBenchmark.cpp b/folly/test/FBVectorBenchmark.cpp index 6548c3f4..1803df61 100644 --- a/folly/test/FBVectorBenchmark.cpp +++ b/folly/test/FBVectorBenchmark.cpp @@ -17,6 +17,7 @@ // // Author: andrei.alexandrescu@fb.com +#include #include #include #include diff --git a/folly/test/FBVectorTest.cpp b/folly/test/FBVectorTest.cpp index ae845834..ef3c6918 100644 --- a/folly/test/FBVectorTest.cpp +++ b/folly/test/FBVectorTest.cpp @@ -17,6 +17,7 @@ // // Author: andrei.alexandrescu@fb.com +#include #include #include #include