diff --git a/Arithmetic_kernel/include/CGAL/Arithmetic_kernel.h b/Arithmetic_kernel/include/CGAL/Arithmetic_kernel.h index a01c7b70240..335d9e19d5d 100644 --- a/Arithmetic_kernel/include/CGAL/Arithmetic_kernel.h +++ b/Arithmetic_kernel/include/CGAL/Arithmetic_kernel.h @@ -59,6 +59,15 @@ typedef GMP_arithmetic_kernel Arithmetic_kernel; #endif // CGAL_USE_GMP #endif // CGAL_HAS_DEFAULT_ARITHMETIC_KERNEL +#ifndef CGAL_HAS_DEFAULT_ARITHMETIC_KERNEL +#include +#if defined(CGAL_HAS_BOOST_MP_ARITHMETIC_KERNEL) +namespace CGAL{ +typedef BOOST_cpp_arithmetic_kernel Arithmetic_kernel; +}// namespace CGAL +#define CGAL_HAS_DEFAULT_ARITHMETIC_KERNEL 1 +#endif // CGAL_USE_BOOST_MP +#endif // CGAL_HAS_DEFAULT_ARITHMETIC_KERNEL // Macro to snap typedefs in Arithmetic_kernel #define CGAL_SNAP_ARITHMETIC_KERNEL_TYPEDEFS(AT) \ diff --git a/Arithmetic_kernel/include/CGAL/BOOST_MP_arithmetic_kernel.h b/Arithmetic_kernel/include/CGAL/BOOST_MP_arithmetic_kernel.h index b1c1b1532e8..597e350bfd1 100644 --- a/Arithmetic_kernel/include/CGAL/BOOST_MP_arithmetic_kernel.h +++ b/Arithmetic_kernel/include/CGAL/BOOST_MP_arithmetic_kernel.h @@ -25,6 +25,8 @@ //#include //#endif +#define CGAL_HAS_BOOST_MP_ARITHMETIC_KERNEL + // FIXME: the could be several kernels based on Boost.Multiprecision. namespace CGAL {