File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 166
166
// requires code not to make these assumptions.
167
167
# define _LIBCPP_ABI_USE_WRAP_ITER_IN_STD_ARRAY
168
168
# define _LIBCPP_ABI_USE_WRAP_ITER_IN_STD_STRING_VIEW
169
+ // Dont' add an inline namespace for `std::filesystem`
170
+ # define _LIBCPP_ABI_NO_FILESYSTEM_INLINE_NAMESPACE
169
171
# elif _LIBCPP_ABI_VERSION == 1
170
172
# if !(defined(_LIBCPP_OBJECT_FORMAT_COFF) || defined(_LIBCPP_OBJECT_FORMAT_XCOFF))
171
173
// Enable compiling copies of now inline methods into the dylib to support
@@ -831,10 +833,16 @@ typedef __char32_t char32_t;
831
833
inline namespace _LIBCPP_ABI_NAMESPACE {
832
834
# define _LIBCPP_END_NAMESPACE_STD }} _LIBCPP_POP_EXTENSION_DIAGNOSTICS
833
835
836
+ #ifdef _LIBCPP_ABI_NO_FILESYSTEM_INLINE_NAMESPACE
837
+ # define _LIBCPP_BEGIN_NAMESPACE_FILESYSTEM _LIBCPP_BEGIN_NAMESPACE_STD namespace filesystem {
838
+ # define _LIBCPP_END_NAMESPACE_FILESYSTEM } _LIBCPP_END_NAMESPACE_STD
839
+ #else
834
840
# define _LIBCPP_BEGIN_NAMESPACE_FILESYSTEM _LIBCPP_BEGIN_NAMESPACE_STD \
835
841
inline namespace __fs { namespace filesystem {
836
842
837
843
# define _LIBCPP_END_NAMESPACE_FILESYSTEM }} _LIBCPP_END_NAMESPACE_STD
844
+ #endif
845
+
838
846
// clang-format on
839
847
840
848
# if __has_attribute(__enable_if__)
You can’t perform that action at this time.
0 commit comments