Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions absl/hash/internal/hash.h
Original file line number Diff line number Diff line change
Expand Up @@ -683,10 +683,6 @@ H AbslHashValue(H hash_state, std::basic_string_view<Char> str) {
}

#if defined(__cpp_lib_filesystem) && __cpp_lib_filesystem >= 201703L && \

@derekmauro derekmauro Jun 1, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Of all the PRs I've accepted, I don't think there is any I regret accepting more than adding hashing for std::filesystem::path. I must have wasted an entire week on workarounds for platforms that do not have a file system. I think it is fine to remove ENVIRONMENT stuff, but please restore the __cpp_lib_filesystem guards. I don't feel like researching it, but I think there are platforms that do not define this because they do not have a file system.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

(!defined(__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__) || \
__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__ >= 130000) && \
(!defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) || \
__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 101500) && \
(!defined(__XTENSA__))

#define ABSL_INTERNAL_STD_FILESYSTEM_PATH_HASH_AVAILABLE 1
Expand Down