Commit ea229bec authored by Gerd Moellmann's avatar Gerd Moellmann

(toplevel) [STDC_HEADERS]: Include float.h.

(MAX_10_EXP): New macro.
(Fformat): Use it.
parent 70ad9fc4
......@@ -43,6 +43,13 @@ Boston, MA 02111-1307, USA. */
#include "systime.h"
#ifdef STDC_HEADERS
#include <float.h>
#define MAX_10_EXP DBL_MAX_10_EXP
#else
#define MAX_10_EXP 310
#endif
#define min(a, b) ((a) < (b) ? (a) : (b))
#define max(a, b) ((a) > (b) ? (a) : (b))
......@@ -3270,7 +3277,7 @@ Use %% to put a single % into the output.")
/* Note that we're using sprintf to print floats,
so we have to take into account what that function
prints. */
thissize = 200 + precision;
thissize = MAX_10_EXP + 100 + precision;
}
else
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment