diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2020-06-01 10:39:52 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2020-06-01 10:39:52 +0000 |
commit | dce6158229d1a0b144d527403d01d189554c0092 (patch) | |
tree | 11b4f8f1b3b8e4c8cd5c4dbc88c5f23af7471531 /src/get_str.c | |
parent | 923d451d79787b127b1a38da91dccc1a50ad6a45 (diff) | |
download | mpfr-dce6158229d1a0b144d527403d01d189554c0092.tar.gz |
Bug fixes and cleanup related to "src/mpfr-intmax.h" by introducing
a new macro MPFR_NEED_INTMAX_H, which should be defined instead of
using: #include "mpfr-intmax.h"
Details on the bugs fixed:
* The code added in r13916 forgot a #include <limits.h> since this
code does a test on ULLONG_MAX. With the cleanup, <limits.h> is
already always included by mpfr-impl.h (early enough).
* In src/get_str.c and tests/memory.c, a #include "config.h" was
missing before #include "mpfr-intmax.h"; this issue would affect
platforms where "config.h" is needed and where <inttypes.h> or
<stdint.h> does not exist or does not work.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13923 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'src/get_str.c')
-rw-r--r-- | src/get_str.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/get_str.c b/src/get_str.c index 94f2980ab..306d332f7 100644 --- a/src/get_str.c +++ b/src/get_str.c @@ -21,7 +21,7 @@ https://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */ #define MPFR_NEED_LONGLONG_H -#include "mpfr-intmax.h" +#define MPFR_NEED_INTMAX_H #include "mpfr-impl.h" static int mpfr_get_str_aux (char *const, mpfr_exp_t *const, mp_limb_t *const, |