summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2019-06-01 19:17:35 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2019-06-01 19:17:35 +0000
commitaf55525ef118bdc63a5895073c788e4d7de9f504 (patch)
treea316cdb977b92d1eeee2af99af949d3e8cae29ad
parent4d5ab5014f1e2d3e02eeebd4fe84639b36bb9fe3 (diff)
downloadmpfr-af55525ef118bdc63a5895073c788e4d7de9f504.tar.gz
[src/mpfr-impl.h] Include <float.h> to make sure that macro definitions
in this header file are always correct: some definitions depend on various macros from <float.h>, such as FLT_RADIX and DBL_MANT_DIG. This fixes bug 21762 (case where "volatile" is a macro): https://gforge.inria.fr/tracker/?func=detail&atid=619&aid=21762&group_id=136 (merged changesets r13493-13494 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@13499 280ebfd0-de03-0410-8827-d642c229c3f4
-rw-r--r--src/mpfr-impl.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mpfr-impl.h b/src/mpfr-impl.h
index 805e3cb4a..e2a2dd0d9 100644
--- a/src/mpfr-impl.h
+++ b/src/mpfr-impl.h
@@ -57,6 +57,7 @@ https://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc.,
#include <stdlib.h>
#include <limits.h>
+#include <float.h> /* for FLT_RADIX, etc., tested below */
/******************************************************