From 3d0ae974040963cc13638c5fa53f5e0fdb975bb5 Mon Sep 17 00:00:00 2001 From: Alexander Sklar Date: Fri, 9 Apr 2021 02:14:58 -0700 Subject: [PATCH] Conditionally include fmt/format.h (#1551) Summary: Addresses - at least partly - issue https://github.com/facebook/folly/issues/1550 We'd like to limit our exposure to additional libraries. Fmt is a new dependency. It doesn't look like we need it in actuality; gating the include based on whether the file exists or not makes it possible for clients (specifically React Native for Windows) to not need to fork Folly. Pull Request resolved: https://github.com/facebook/folly/pull/1551 Reviewed By: yfeldblum Differential Revision: D27531237 Pulled By: Orvid fbshipit-source-id: 340a7ff49be81872aaf23044945a1e8ecd157546 --- folly/Range.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/folly/Range.h b/folly/Range.h index a0255010668..d43c5940623 100644 --- a/folly/Range.h +++ b/folly/Range.h @@ -41,7 +41,9 @@ #include // @manual #endif +#if __has_include() #include +#endif #include #include