blob: 8e21d879341304b3d7a98c98f3fffa52e3b5d4cd (
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 875e8ef..d5c4299 100644
--- a/include/bitset
+++ b/include/bitset
@@ -131,6 +131,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>
@@ -267,9 +271,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)}
|