diff options
author | Kevin Ryde <user42@zip.com.au> | 2002-10-05 03:44:50 +0200 |
---|---|---|
committer | Kevin Ryde <user42@zip.com.au> | 2002-10-05 03:44:50 +0200 |
commit | 39bbdbb82658b292e98081133ee28aa580204a26 (patch) | |
tree | 90cbd84b1d1d261e5a1c1c07b03dafe880425922 /printf | |
parent | c67c01dec31cf690a9b8bd3341413a80187c4b05 (diff) | |
download | gmp-39bbdbb82658b292e98081133ee28aa580204a26.tar.gz |
* configure.in (AC_CHECK_HEADERS): Test float.h, not in SunOS cc.
* printf/repl-vsnprintf.c: Use this.
Diffstat (limited to 'printf')
-rw-r--r-- | printf/repl-vsnprintf.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/printf/repl-vsnprintf.c b/printf/repl-vsnprintf.c index d045af4d6..e49bf402f 100644 --- a/printf/repl-vsnprintf.c +++ b/printf/repl-vsnprintf.c @@ -35,12 +35,16 @@ MA 02111-1307, USA. */ #endif #include <ctype.h> /* for isdigit */ -#include <float.h> /* for DBL_MAX_10_EXP etc */ + #include <stddef.h> /* for ptrdiff_t */ #include <string.h> #include <stdio.h> /* for NULL */ #include <stdlib.h> +#if HAVE_FLOAT_H +#include <float.h> /* for DBL_MAX_10_EXP etc */ +#endif + #if HAVE_INTTYPES_H # include <inttypes.h> /* for intmax_t */ #else |