summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mpfr-intmax.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mpfr-intmax.h b/src/mpfr-intmax.h
index 8fba6c4f8..6cffccc54 100644
--- a/src/mpfr-intmax.h
+++ b/src/mpfr-intmax.h
@@ -56,10 +56,15 @@ http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc.,
/* Largest signed integer type available for the MPFR build. */
#if defined(MPFR_USE_INTMAX_T)
typedef intmax_t mpfr_intmax_t;
+typedef uintmax_t mpfr_uintmax_t;
#elif defined(HAVE_LONG_LONG)
typedef long long mpfr_intmax_t;
+typedef unsigned long long mpfr_uintmax_t;
+# define MPFR_INTMAX_MAX LLONG_MAX
#else
typedef long mpfr_intmax_t;
+typedef unsigned long mpfr_uintmax_t;
+# define MPFR_INTMAX_MAX LONG_MAX
#endif
#endif