summaryrefslogtreecommitdiff
path: root/absl/hash
diff options
context:
space:
mode:
authorGravatar Abseil Team <absl-team@google.com>2023-11-22 11:07:57 -0800
committerGravatar Copybara-Service <copybara-worker@google.com>2023-11-22 11:08:37 -0800
commit2fca64174fe9aefe9250bdab1586eb5d69649cca (patch)
tree33b7f07d66fa7ef61fdfcf6e2f19a8d3f0975bf6 /absl/hash
parentdb5c79932e16e97e8b2f9ecd0e74f99f0e74e0d7 (diff)
Avoid AbslHashValue for std::filesystem::path when <filesystem> is not included
PiperOrigin-RevId: 584675181 Change-Id: I78c9a29055327c84f1e78b8440221439839a041c
Diffstat (limited to 'absl/hash')
-rw-r--r--absl/hash/internal/hash.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/absl/hash/internal/hash.h b/absl/hash/internal/hash.h
index fb17cc3c..f4a94f91 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<Char> 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)