diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2017-12-24 21:12:33 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2017-12-24 21:12:33 +0200 |
commit | 8022211ff9337ff77d025eb402be3bae50961c09 (patch) | |
tree | f8a078ef1cf7f9280fe6df3a0faee3905aaa404f | |
parent | 8e9a064692fe3ec76df568c0a3d75ab702acf85b (diff) | |
download | egawk-8022211ff9337ff77d025eb402be3bae50961c09.tar.gz egawk-8022211ff9337ff77d025eb402be3bae50961c09.tar.bz2 egawk-8022211ff9337ff77d025eb402be3bae50961c09.zip |
Fix intdiv.c to compile for MPFR 2.4.1.
-rw-r--r-- | extension/ChangeLog | 4 | ||||
-rw-r--r-- | extension/intdiv.c | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/extension/ChangeLog b/extension/ChangeLog index f7884019..b6e943cd 100644 --- a/extension/ChangeLog +++ b/extension/ChangeLog @@ -1,3 +1,7 @@ +2017-12-24 Michal Jaegermann <michal.jnn@gmail.com> + + * intdiv.c: Fix compilation for MPFR 2.4.1. + 2017-12-20 Arnold D. Robbins <arnold@skeeve.com> * configure.ac: Add support for the --enable-versioned-dir option diff --git a/extension/intdiv.c b/extension/intdiv.c index 11045858..fb98f153 100644 --- a/extension/intdiv.c +++ b/extension/intdiv.c @@ -15,7 +15,12 @@ #include "gawkapi.h" #ifdef HAVE_MPFR +#include <gmp.h> #include <mpfr.h> +#ifndef MPFR_RNDZ +/* for compatibility with MPFR 2.X */ +#define MPFR_RNDZ GMP_RNDZ +#endif #endif #include "gettext.h" |