Commit 7a78293e authored by Louis Brandy's avatar Louis Brandy Committed by facebook-github-bot-9

make folly slightly more c++-modules friendly

Summary: .. by including what you use.

These are a handful of headers that are depended on via viral inclusion. Include them directly.

Reviewed By: yfeldblum

Differential Revision: D2601172

fb-gh-sync-id: 215e87263325d085fbcb651f83f429f47d14fc1b
parent fb450d12
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
#ifndef FOLLY_PADDED_H_ #ifndef FOLLY_PADDED_H_
#define FOLLY_PADDED_H_ #define FOLLY_PADDED_H_
#include <algorithm>
#include <cassert> #include <cassert>
#include <cstdint> #include <cstdint>
#include <cstring> #include <cstring>
......
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
#define FOLLY_DETAIL_CACHELOCALITY_H_ #define FOLLY_DETAIL_CACHELOCALITY_H_
#include <sched.h> #include <sched.h>
#include <algorithm>
#include <atomic> #include <atomic>
#include <cassert> #include <cassert>
#include <functional> #include <functional>
......
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
#ifndef FOLLY_DETAIL_DISCRIMINATEDPTRDETAIL_H_ #ifndef FOLLY_DETAIL_DISCRIMINATEDPTRDETAIL_H_
#define FOLLY_DETAIL_DISCRIMINATEDPTRDETAIL_H_ #define FOLLY_DETAIL_DISCRIMINATEDPTRDETAIL_H_
#include <utility>
#include <type_traits> #include <type_traits>
namespace folly { namespace folly {
......
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
#ifndef FOLLY_STATS_BUCKETEDTIMESERIES_INL_H_ #ifndef FOLLY_STATS_BUCKETEDTIMESERIES_INL_H_
#define FOLLY_STATS_BUCKETEDTIMESERIES_INL_H_ #define FOLLY_STATS_BUCKETEDTIMESERIES_INL_H_
#include <algorithm>
#include <glog/logging.h> #include <glog/logging.h>
#include <folly/Likely.h> #include <folly/Likely.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment