Skip to content

Commit 27a0c73

Browse files
derekmaurocopybara-github
authored andcommitted
Remove usage of _LIBCPP_HAS_NO_FILESYSTEM_LIBRARY.
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
1 parent 8d272b2 commit 27a0c73

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

absl/hash/internal/hash.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,7 @@
6969
#include "absl/types/variant.h"
7070
#include "absl/utility/utility.h"
7171

72-
#if defined(__cpp_lib_filesystem) && __cpp_lib_filesystem >= 201703L && \
73-
!defined(_LIBCPP_HAS_NO_FILESYSTEM_LIBRARY)
72+
#if defined(__cpp_lib_filesystem) && __cpp_lib_filesystem >= 201703L
7473
#include <filesystem> // NOLINT
7574
#endif
7675

@@ -605,7 +604,6 @@ H AbslHashValue(H hash_state, std::basic_string_view<Char> str) {
605604
#endif // ABSL_HAVE_STD_STRING_VIEW
606605

607606
#if defined(__cpp_lib_filesystem) && __cpp_lib_filesystem >= 201703L && \
608-
!defined(_LIBCPP_HAS_NO_FILESYSTEM_LIBRARY) && \
609607
(!defined(__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__) || \
610608
__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__ >= 130000) && \
611609
(!defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) || \

0 commit comments

Comments
 (0)