Skip to content

Commit 44a3e5c

Browse files
committed
spanstream does not support no-localization
1 parent 4b288e1 commit 44a3e5c

File tree

1 file changed

+33
-28
lines changed

1 file changed

+33
-28
lines changed

libcxx/include/spanstream

Lines changed: 33 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -54,31 +54,34 @@
5454

5555
// clang-format on
5656

57-
#include <__concepts/convertible_to.h>
5857
#include <__config>
59-
#include <__fwd/spanstream.h>
60-
#include <__memory/addressof.h>
61-
#include <__ranges/concepts.h>
62-
#include <__utility/cmp.h>
63-
#include <__utility/forward.h>
64-
#include <__utility/move.h>
65-
#include <__utility/swap.h>
66-
#include <ios>
67-
#include <iostream>
68-
#include <span>
69-
#include <streambuf>
70-
#include <version>
71-
72-
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
73-
# pragma GCC system_header
74-
#endif
58+
59+
#if !defined(_LIBCPP_HAS_NO_LOCALIZATION)
60+
61+
# include <__concepts/convertible_to.h>
62+
# include <__fwd/spanstream.h>
63+
# include <__memory/addressof.h>
64+
# include <__ranges/concepts.h>
65+
# include <__utility/cmp.h>
66+
# include <__utility/forward.h>
67+
# include <__utility/move.h>
68+
# include <__utility/swap.h>
69+
# include <ios>
70+
# include <iostream>
71+
# include <span>
72+
# include <streambuf>
73+
# include <version>
74+
75+
# if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
76+
# pragma GCC system_header
77+
# endif
7578

7679
_LIBCPP_PUSH_MACROS
77-
#include <__undef_macros>
80+
# include <__undef_macros>
7881

7982
_LIBCPP_BEGIN_NAMESPACE_STD
8083

81-
#if _LIBCPP_STD_VER >= 23
84+
# if _LIBCPP_STD_VER >= 23
8285

8386
// Class template basic_spanbuf [spanbuf]
8487

@@ -240,9 +243,9 @@ _LIBCPP_HIDE_FROM_ABI void swap(basic_spanbuf<_CharT, _Traits>& __x, basic_spanb
240243
}
241244

242245
using std::spanbuf;
243-
# ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
246+
# ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
244247
using std::wspanbuf;
245-
# endif
248+
# endif
246249

247250
// Class template basic_ispanstream [ispanstream]
248251

@@ -318,9 +321,9 @@ _LIBCPP_HIDE_FROM_ABI void swap(basic_ispanstream<_CharT, _Traits>& __x, basic_i
318321
}
319322

320323
using std::ispanstream;
321-
# ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
324+
# ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
322325
using std::wispanstream;
323-
# endif
326+
# endif
324327

325328
// Class template basic_ospanstream [ospanstream]
326329

@@ -381,9 +384,9 @@ _LIBCPP_HIDE_FROM_ABI void swap(basic_ospanstream<_CharT, _Traits>& __x, basic_o
381384
}
382385

383386
using std::ospanstream;
384-
# ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
387+
# ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
385388
using std::wospanstream;
386-
# endif
389+
# endif
387390

388391
template <class _CharT, class _Traits>
389392
class _LIBCPP_TEMPLATE_VIS basic_spanstream : public basic_iostream<_CharT, _Traits> {
@@ -442,16 +445,18 @@ _LIBCPP_HIDE_FROM_ABI void swap(basic_spanstream<_CharT, _Traits>& __x, basic_sp
442445
}
443446

444447
using std::spanstream;
445-
# ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
448+
# ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
446449
using std::wspanstream;
447-
# endif
450+
# endif
448451

449-
#endif // _LIBCPP_STD_VER >= 23
452+
# endif // _LIBCPP_STD_VER >= 23
450453

451454
_LIBCPP_END_NAMESPACE_STD
452455

453456
_LIBCPP_POP_MACROS
454457

458+
#endif // !_LIBCPP_HAS_NO_LOCALIZATION
459+
455460
#if _LIBCPP_STD_VER <= 20 && !defined(_LIBCPP_REMOVE_TRANSITIVE_INCLUDES)
456461
# include <type_traits>
457462
#endif

0 commit comments

Comments
 (0)