From f393335cb7410fc3a88f41dc5dd878c020213e0b Mon Sep 17 00:00:00 2001 From: Abseil Team Date: Fri, 17 Nov 2023 13:33:15 -0800 Subject: Respect libc++ config option for disable of filesystem - libc++ throws errors when filesystem is included when disabled PiperOrigin-RevId: 583474609 Change-Id: I205edc5c508f12b84244912f9acc47308a8ca540 --- absl/hash/internal/hash.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/absl/hash/internal/hash.h b/absl/hash/internal/hash.h index c94a6214..fb17cc3c 100644 --- a/absl/hash/internal/hash.h +++ b/absl/hash/internal/hash.h @@ -61,7 +61,8 @@ #include "absl/types/variant.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 // NOLINT #endif -- cgit v1.2.3