Skip to content

Commit

Permalink
Remove usage of _LIBCPP_HAS_NO_FILESYSTEM_LIBRARY.
Browse files Browse the repository at this point in the history
This macro is internal to libc++ and was removed by
llvm/llvm-project@c6f3b7b

Abseil clients lacking this support should send a PR to add a
supported platform specific condition to the preprocessor to disable
it.

llvm/llvm-project#89178 (comment)
suggests the feature test macros like __cpp_lib_filesystem now work.

PiperOrigin-RevId: 695454966
Change-Id: I9d4f710f422b9a2351d2780c219e8804f4162c07
  • Loading branch information
derekmauro authored and copybara-github committed Nov 11, 2024
1 parent 8d272b2 commit 27a0c73
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions absl/hash/internal/hash.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,7 @@
#include "absl/types/variant.h"
#include "absl/utility/utility.h"

#if defined(__cpp_lib_filesystem) && __cpp_lib_filesystem >= 201703L && \
!defined(_LIBCPP_HAS_NO_FILESYSTEM_LIBRARY)
#if defined(__cpp_lib_filesystem) && __cpp_lib_filesystem >= 201703L
#include <filesystem> // NOLINT
#endif

Expand Down Expand Up @@ -605,7 +604,6 @@ 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) && \
(!defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) || \
Expand Down

0 comments on commit 27a0c73

Please sign in to comment.