Use boost::int128_type instead of __int128. This makes __extension__

useless, hence removed.
This commit is contained in:
Marc Glisse 2014-03-13 17:06:43 +01:00
parent b257e85427
commit 1241b2f14f
2 changed files with 6 additions and 16 deletions

View File

@ -354,13 +354,6 @@ using std::max;
# define CGAL_UNUSED
#endif
// Macro to specify that gcc's pedantic mode should not warn.
#ifdef __GNUG__
# define CGAL_GNU_EXTENSION __extension__
#else
# define CGAL_GNU_EXTENSION
#endif
// Macro CGAL_ASSUME
// Call a builtin of the compiler to pass a hint to the compiler
#if __has_builtin(__builtin_unreachable) || (CGAL_GCC_VERSION >= 40500 && !__STRICT_ANSI__)

View File

@ -90,9 +90,8 @@ template <> class Real_embeddable_traits< unsigned long long >
#ifdef BOOST_HAS_INT128
// __int128
CGAL_GNU_EXTENSION
template<> class Algebraic_structure_traits< __int128 >
: public Algebraic_structure_traits_base< __int128,
template<> class Algebraic_structure_traits< boost::int128_type >
: public Algebraic_structure_traits_base< boost::int128_type,
Euclidean_ring_tag > {
public:
@ -104,9 +103,8 @@ template<> class Algebraic_structure_traits< __int128 >
};
CGAL_GNU_EXTENSION
template <> class Real_embeddable_traits< __int128 >
: public INTERN_RET::Real_embeddable_traits_base< __int128 , CGAL::Tag_true > {
template <> class Real_embeddable_traits< boost::int128_type >
: public INTERN_RET::Real_embeddable_traits_base< boost::int128_type , CGAL::Tag_true > {
public:
class To_interval
@ -119,9 +117,8 @@ template <> class Real_embeddable_traits< __int128 >
};
// unsigned __int128
CGAL_GNU_EXTENSION
template <> class Real_embeddable_traits< unsigned __int128 >
: public INTERN_RET::Real_embeddable_traits_base< unsigned __int128 , CGAL::Tag_true > {
template <> class Real_embeddable_traits< boost::uint128_type >
: public INTERN_RET::Real_embeddable_traits_base< boost::uint128_type , CGAL::Tag_true > {
public:
class To_interval