diff --git a/include/boost/multiprecision/detail/number_base.hpp b/include/boost/multiprecision/detail/number_base.hpp index e36f9d660..22ce611bc 100644 --- a/include/boost/multiprecision/detail/number_base.hpp +++ b/include/boost/multiprecision/detail/number_base.hpp @@ -206,7 +206,7 @@ struct bits_of : sizeof(T) * CHAR_BIT - (boost::multiprecision::detail::is_signed::value ? 1 : 0); }; -#if defined(_GLIBCXX_USE_FLOAT128) && defined(BOOST_GCC) && !defined(__STRICT_ANSI__) +#if defined(_GLIBCXX_USE_FLOAT128) && defined(BOOST_GCC) && !defined(__STRICT_ANSI__) && !defined(__PGI) #define BOOST_MP_BITS_OF_FLOAT128_DEFINED template <> struct bits_of