summaryrefslogtreecommitdiff
path: root/absl
diff options
context:
space:
mode:
authorGravatar Abseil Team <absl-team@google.com>2023-11-17 13:33:15 -0800
committerGravatar Copybara-Service <copybara-worker@google.com>2023-11-17 13:34:09 -0800
commitf393335cb7410fc3a88f41dc5dd878c020213e0b (patch)
treed324d4e14a783b03e55d245e0e8aa7728a17f203 /absl
parent00e087fd6391d97ca185e741f3d0b67fa3618b91 (diff)
Respect libc++ config option for disable of filesystem
- libc++ throws errors when filesystem is included when disabled PiperOrigin-RevId: 583474609 Change-Id: I205edc5c508f12b84244912f9acc47308a8ca540
Diffstat (limited to 'absl')
-rw-r--r--absl/hash/internal/hash.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/absl/hash/internal/hash.h b/absl/hash/internal/hash.h
index c94a6214..fb17cc3c 100644
--- a/absl/hash/internal/hash.h
+++ b/absl/hash/internal/hash.h
@@ -61,7 +61,8 @@
#include "absl/types/variant.h"
#include "absl/utility/utility.h"
-#if ABSL_INTERNAL_CPLUSPLUS_LANG >= 201703L
+#if ABSL_INTERNAL_CPLUSPLUS_LANG >= 201703L && \
+ !defined(_LIBCPP_HAS_NO_FILESYSTEM_LIBRARY)
#include <filesystem> // NOLINT
#endif