From f585e98a169e2c6a932658c317d91936e308f81c Mon Sep 17 00:00:00 2001 From: Elizabeth Smith Date: Thu, 17 Apr 2014 07:45:39 -0700 Subject: [PATCH] Add missing includes for msvc Summary: MSVC is a stricter compiler and needs additional includes explicitly declared Test Plan: fbmake runtests Reviewed By: njormrod@fb.com FB internal diff: D1277004 --- folly/FBString.h | 1 + folly/Optional.h | 1 + folly/String.cpp | 1 + folly/Traits.h | 1 + folly/wangle/Future.h | 1 + 5 files changed, 5 insertions(+) diff --git a/folly/FBString.h b/folly/FBString.h index a768dec3..ea0df00c 100644 --- a/folly/FBString.h +++ b/folly/FBString.h @@ -61,6 +61,7 @@ #include #include #include +#include // libc++ doesn't provide this header #ifndef _LIBCPP_VERSION diff --git a/folly/Optional.h b/folly/Optional.h index e877738d..c155f10e 100644 --- a/folly/Optional.h +++ b/folly/Optional.h @@ -61,6 +61,7 @@ #include +#include "folly/Portability.h" namespace folly { diff --git a/folly/String.cpp b/folly/String.cpp index bf3fc38c..f50d1de8 100644 --- a/folly/String.cpp +++ b/folly/String.cpp @@ -22,6 +22,7 @@ #include #include #include +#include #include namespace folly { diff --git a/folly/Traits.h b/folly/Traits.h index 966dcc57..9f90fa56 100644 --- a/folly/Traits.h +++ b/folly/Traits.h @@ -22,6 +22,7 @@ #include #include #include +#include #include "folly/Portability.h" diff --git a/folly/wangle/Future.h b/folly/wangle/Future.h index 441d1f5a..c1deb6ad 100644 --- a/folly/wangle/Future.h +++ b/folly/wangle/Future.h @@ -21,6 +21,7 @@ #include #include #include +#include #include "folly/MoveWrapper.h" #include "Promise.h" -- 2.34.1