Include CGAL/gmp.h before the boost multiprecision GMP wrapper, for warnings.

This commit is contained in:
Marc Glisse 2018-11-07 14:06:57 +01:00
parent cbe02d40e7
commit 0211ca58c7
3 changed files with 3 additions and 0 deletions

View File

@ -30,6 +30,7 @@
#include <boost/multiprecision/cpp_int.hpp> #include <boost/multiprecision/cpp_int.hpp>
#ifdef CGAL_USE_GMP #ifdef CGAL_USE_GMP
#include <CGAL/gmp.h>
#include <boost/multiprecision/gmp.hpp> #include <boost/multiprecision/gmp.hpp>
#endif #endif

View File

@ -36,6 +36,7 @@
// ... but we kind of have to :-( // ... but we kind of have to :-(
#include <boost/multiprecision/cpp_int.hpp> #include <boost/multiprecision/cpp_int.hpp>
#ifdef CGAL_USE_GMP #ifdef CGAL_USE_GMP
#include <CGAL/gmp.h>
#include <boost/multiprecision/gmp.hpp> #include <boost/multiprecision/gmp.hpp>
#endif #endif

View File

@ -45,6 +45,7 @@
# include <boost/multiprecision/cpp_int.hpp> # include <boost/multiprecision/cpp_int.hpp>
// After some CGAL includes so we get a chance to define CGAL_USE_GMP. // After some CGAL includes so we get a chance to define CGAL_USE_GMP.
# ifdef CGAL_USE_GMP # ifdef CGAL_USE_GMP
# include <CGAL/gmp.h>
# include <boost/multiprecision/gmp.hpp> # include <boost/multiprecision/gmp.hpp>
# endif # endif
#endif #endif