Commit 60699fef authored by Michael Lee's avatar Michael Lee Committed by Facebook Github Bot 1

Clean up int128_t macro gating

Summary: There is inconsistent use of `#ifdef` and `#if`. Cleaning this up

Reviewed By: yfeldblum

Differential Revision: D3523561

fbshipit-source-id: 23f62d632efeb1b9b137b3e3582c37aae591d901
parent 57cdfdf7
...@@ -69,7 +69,7 @@ static_assert(sizeof(unsigned long long) >= 8, ...@@ -69,7 +69,7 @@ static_assert(sizeof(unsigned long long) >= 8,
"Wrong value for MaxString<unsigned long long>::value" "Wrong value for MaxString<unsigned long long>::value"
", please update."); ", please update.");
#ifdef FOLLY_HAVE_INT128_T #if FOLLY_HAVE_INT128_T
template <> const char *const MaxString<__uint128_t>::value = template <> const char *const MaxString<__uint128_t>::value =
"340282366920938463463374607431768211455"; "340282366920938463463374607431768211455";
#endif #endif
......
...@@ -702,7 +702,7 @@ struct HasLengthEstimator : std::false_type {}; ...@@ -702,7 +702,7 @@ struct HasLengthEstimator : std::false_type {};
template <class Src> template <class Src>
constexpr typename std::enable_if< constexpr typename std::enable_if<
!std::is_fundamental<Src>::value !std::is_fundamental<Src>::value
#ifdef FOLLY_HAVE_INT128_T #if FOLLY_HAVE_INT128_T
// On OSX 10.10, is_fundamental<__int128> is false :-O // On OSX 10.10, is_fundamental<__int128> is false :-O
&& !std::is_same<__int128, Src>::value && !std::is_same<__int128, Src>::value
&& !std::is_same<unsigned __int128, Src>::value && !std::is_same<unsigned __int128, Src>::value
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment