From 2fca64174fe9aefe9250bdab1586eb5d69649cca Mon Sep 17 00:00:00 2001 From: Abseil Team Date: Wed, 22 Nov 2023 11:07:57 -0800 Subject: [PATCH] Avoid AbslHashValue for std::filesystem::path when is not included PiperOrigin-RevId: 584675181 Change-Id: I78c9a29055327c84f1e78b8440221439839a041c --- absl/hash/internal/hash.h | 1 + 1 file changed, 1 insertion(+) diff --git a/absl/hash/internal/hash.h b/absl/hash/internal/hash.h index fb17cc3cfa5..f4a94f9129f 100644 --- a/absl/hash/internal/hash.h +++ b/absl/hash/internal/hash.h @@ -589,6 +589,7 @@ H AbslHashValue(H hash_state, std::basic_string_view str) { #endif // ABSL_HAVE_STD_STRING_VIEW #if defined(__cpp_lib_filesystem) && __cpp_lib_filesystem >= 201703L && \ + !defined(_LIBCPP_HAS_NO_FILESYSTEM_LIBRARY) && \ (!defined(__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__) || \ __ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__ >= 130000)