Guard __has_builtin

This commit is contained in:
Krystian Stasiowski
2020-02-02 11:53:21 -05:00
parent 497c84b5a1
commit 46a92fd8a4
2 changed files with 14 additions and 4 deletions

View File

@ -627,7 +627,7 @@ is_inside(
return true;
return false;
}
#elif defined(__clang__) && __has_builtin(__builtin_constant_p)
#elif defined(__clang__) && BOOST_STATIC_STRING_HAS_BUILTIN(__builtin_constant_p)
// We can also try using __builtin_constant_p
if (__builtin_constant_p((ptr, src_first, src_last)))
{