diff options
author | Abseil Team <absl-team@google.com> | 2023-11-22 11:07:57 -0800 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2023-11-22 11:08:37 -0800 |
commit | 2fca64174fe9aefe9250bdab1586eb5d69649cca (patch) | |
tree | 33b7f07d66fa7ef61fdfcf6e2f19a8d3f0975bf6 /absl/hash | |
parent | db5c79932e16e97e8b2f9ecd0e74f99f0e74e0d7 (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.h | 1 |
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) |