diff options
Diffstat (limited to 'Build/source/libs/mpfr/mpfr-src/src/get_uj.c')
-rw-r--r-- | Build/source/libs/mpfr/mpfr-src/src/get_uj.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/Build/source/libs/mpfr/mpfr-src/src/get_uj.c b/Build/source/libs/mpfr/mpfr-src/src/get_uj.c index 5f1c9168758..ca6c16829ee 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/get_uj.c +++ b/Build/source/libs/mpfr/mpfr-src/src/get_uj.c @@ -1,6 +1,6 @@ /* mpfr_get_uj -- convert a MPFR number to a huge machine unsigned integer -Copyright 2004, 2006-2019 Free Software Foundation, Inc. +Copyright 2004, 2006-2020 Free Software Foundation, Inc. Contributed by the AriC and Caramba projects, INRIA. This file is part of the GNU MPFR Library. @@ -20,11 +20,7 @@ along with the GNU MPFR Library; see the file COPYING.LESSER. If not, see https://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - -#include "mpfr-intmax.h" +#define MPFR_NEED_INTMAX_H #include "mpfr-impl.h" #ifdef _MPFR_H_HAVE_INTMAX_T @@ -41,14 +37,14 @@ mpfr_get_uj (mpfr_srcptr f, mpfr_rnd_t rnd) { MPFR_SET_ERANGEFLAG (); return MPFR_IS_NAN (f) || MPFR_IS_NEG (f) ? - (uintmax_t) 0 : MPFR_UINTMAX_MAX; + (uintmax_t) 0 : UINTMAX_MAX; } if (MPFR_IS_ZERO (f)) return (uintmax_t) 0; /* determine the precision of uintmax_t */ - for (r = MPFR_UINTMAX_MAX, prec = 0; r != 0; r /= 2, prec++) + for (r = UINTMAX_MAX, prec = 0; r != 0; r /= 2, prec++) { } MPFR_ASSERTD (r == 0); |