aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/cxxsupp/libcxx/patches/27-bitset.patch
blob: d6113b48519c87b6f96f362f5e8ad1e24e42161f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
diff --git a/include/bitset b/include/bitset
index a3b1dc3..d7112a7 100644
--- a/include/bitset
+++ b/include/bitset
@@ -151,6 +151,10 @@ _LIBCPP_PUSH_MACROS
 #include <__undef_macros>
 
 
+#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
+#pragma GCC system_header
+#endif
+
 _LIBCPP_BEGIN_NAMESPACE_STD
 
 template <size_t _N_words, size_t _Size>
@@ -290,9 +294,9 @@ inline
 _LIBCPP_CONSTEXPR
 __bitset<_N_words, _Size>::__bitset(unsigned long long __v) _NOEXCEPT
 #ifndef _LIBCPP_CXX03_LANG
-#if __SIZEOF_SIZE_T__ == 8
+#if SIZE_MAX == 0xffffffffffffffffULL
     : __first_{__v}
-#elif __SIZEOF_SIZE_T__ == 4
+#elif SIZE_MAX == 0xffffffffULL
     : __first_{static_cast<__storage_type>(__v),
                 _Size >= 2 * __bits_per_word ? static_cast<__storage_type>(__v >> __bits_per_word)
                 : static_cast<__storage_type>((__v >> __bits_per_word) & (__storage_type(1) << (_Size - __bits_per_word)) - 1)}