[libc++] Granularize <concept> includes
Reviewed By: ldionne, #libc
Spies: libcxx-commits
Differential Revision: https://reviews.llvm.org/D137283
NOKEYCHECK=True
GitOrigin-RevId: 89b356f05ab7aa3d96fc7b68aece6e7a5bdb0db5
diff --git a/include/filesystem b/include/filesystem
index 1e7efd2..98d4bb9 100644
--- a/include/filesystem
+++ b/include/filesystem
@@ -461,4 +461,8 @@
# pragma GCC system_header
#endif
+#if !defined(_LIBCPP_REMOVE_TRANSITIVE_INCLUDES) && _LIBCPP_STD_VER <= 20
+# include <concepts>
+#endif
+
#endif // _LIBCPP_FILESYSTEM