Commit f393335c by Abseil Team Committed by Copybara-Service

Respect libc++ config option for disable of filesystem

- libc++ throws errors when filesystem is included when disabled

PiperOrigin-RevId: 583474609
Change-Id: I205edc5c508f12b84244912f9acc47308a8ca540
parent 00e087fd
...@@ -61,7 +61,8 @@ ...@@ -61,7 +61,8 @@
#include "absl/types/variant.h" #include "absl/types/variant.h"
#include "absl/utility/utility.h" #include "absl/utility/utility.h"
#if ABSL_INTERNAL_CPLUSPLUS_LANG >= 201703L #if ABSL_INTERNAL_CPLUSPLUS_LANG >= 201703L && \
!defined(_LIBCPP_HAS_NO_FILESYSTEM_LIBRARY)
#include <filesystem> // NOLINT #include <filesystem> // NOLINT
#endif #endif
......
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