mirror of https://github.com/CGAL/cgal
24 lines
479 B
C
24 lines
479 B
C
#ifndef CGAL_ARR_RATIONAL_NT_H
|
|
#define CGAL_ARR_RATIONAL_NT_H
|
|
|
|
#include <CGAL/basic.h>
|
|
|
|
#ifdef CGAL_USE_GMP
|
|
|
|
// GMP is installed. Use the GMP rational number-type.
|
|
#include <CGAL/Gmpq.h>
|
|
|
|
typedef CGAL::Gmpq Number_type;
|
|
|
|
#else
|
|
|
|
// GMP is not installed. Use CGAL's exact rational number-type.
|
|
#include <CGAL/MP_Float.h>
|
|
#include <CGAL/Quotient.h>
|
|
|
|
typedef CGAL::Quotient<CGAL::MP_Float> Number_type;
|
|
|
|
#endif
|
|
|
|
#endif
|