Ticket #6694: int64.patch
File int64.patch, 2.4 KB (added by , 11 years ago) |
---|
-
\boost\cstdint.hpp
old new 455 455 // 64-bit types + intmax_t and uintmax_t ----------------------------------// 456 456 #ifndef INT64_C 457 457 # if defined(BOOST_HAS_LONG_LONG) && \ 458 (defined(ULLONG_MAX) || defined(ULONG_LONG_MAX) || defined(ULONGLONG_MAX) || defined(_ LLONG_MAX))458 (defined(ULLONG_MAX) || defined(ULONG_LONG_MAX) || defined(ULONGLONG_MAX) || defined(_ULLONG_MAX) || defined(_LLONG_MAX)) 459 459 460 460 # if defined(__hpux) 461 461 // HP-UX's value of ULONG_LONG_MAX is unusable in preprocessor expressions … … 464 464 # elif (defined(ULLONG_MAX) && ULLONG_MAX == 18446744073709551615ULL) || \ 465 465 (defined(ULONG_LONG_MAX) && ULONG_LONG_MAX == 18446744073709551615ULL) || \ 466 466 (defined(ULONGLONG_MAX) && ULONGLONG_MAX == 18446744073709551615ULL) || \ 467 (defined(_LLONG_MAX) && _LLONG_MAX == 18446744073709551615ULL) 467 (defined(_ULLONG_MAX) && _ULLONG_MAX == 18446744073709551615ULL) || \ 468 (defined(_LLONG_MAX) && _LLONG_MAX == 9223372036854775807LL) 468 469 469 470 # define INT64_C(value) value##LL 470 471 # define UINT64_C(value) value##uLL -
\boost\integer.hpp
old new 170 170 { 171 171 typedef typename detail::int_least_helper 172 172 < 173 #if !defined(BOOST_NO_INTEGRAL_INT64_T) && defined(BOOST_HAS_LONG_LONG)173 #if !defined(BOOST_NO_INTEGRAL_INT64_T) && !defined(BOOST_NO_INT64_T) && defined(BOOST_HAS_LONG_LONG) 174 174 (MaxValue <= ::boost::integer_traits<boost::long_long_type>::const_max) + 175 175 #else 176 176 1 + … … 192 192 { 193 193 typedef typename detail::int_least_helper 194 194 < 195 #if !defined(BOOST_NO_INTEGRAL_INT64_T) && defined(BOOST_HAS_LONG_LONG)195 #if !defined(BOOST_NO_INTEGRAL_INT64_T) && !defined(BOOST_NO_INT64_T) && defined(BOOST_HAS_LONG_LONG) 196 196 (MinValue >= ::boost::integer_traits<boost::long_long_type>::const_min) + 197 197 #else 198 198 1 + … … 237 237 typedef typename detail::int_least_helper 238 238 < 239 239 5 + 240 #if !defined(BOOST_NO_INTEGRAL_INT64_T) && defined(BOOST_HAS_LONG_LONG)240 #if !defined(BOOST_NO_INTEGRAL_INT64_T) && !defined(BOOST_NO_INT64_T) && defined(BOOST_HAS_LONG_LONG) 241 241 (MaxValue <= ::boost::integer_traits<boost::ulong_long_type>::const_max) + 242 242 #else 243 243 1 +