diff options
author | Jim Meyering <jim@meyering.net> | 1993-12-23 00:08:23 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1993-12-23 00:08:23 +0000 |
commit | d7daf7444e175ba8ceb752b6ee09a35ff72e8920 (patch) | |
tree | 95266d98b87626a408ad04da246c593bd7e54910 /lib/strtod.c | |
parent | 797585985fffbf0f6e6ef09113051d2ebc976193 (diff) | |
download | coreutils-d7daf7444e175ba8ceb752b6ee09a35ff72e8920.tar.xz |
.
Diffstat (limited to 'lib/strtod.c')
-rw-r--r-- | lib/strtod.c | 25 |
1 files changed, 18 insertions, 7 deletions
diff --git a/lib/strtod.c b/lib/strtod.c index 4441102df..8723a82ef 100644 --- a/lib/strtod.c +++ b/lib/strtod.c @@ -16,28 +16,39 @@ License along with the GNU C Library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ +#ifdef HAVE_CONFIG_H +#if defined (CONFIG_BROKETS) +/* We use <config.h> instead of "config.h" so that a compilation + using -I. -I$srcdir will use ./config.h rather than $srcdir/config.h + (which it would do because it found this file in $srcdir). */ +#include <config.h> +#else +#include "config.h" +#endif +#endif + #include <errno.h> #include <ctype.h> #include <math.h> -#if STDC_HEADERS +#ifdef HAVE_FLOAT_H #include <float.h> +#else +#define DBL_MAX 1.7976931348623159e+308 +#define DBL_MIN 2.2250738585072010e-308 +#endif + +#if STDC_HEADERS #include <stdlib.h> #include <string.h> #else #define NULL 0 -#define DBL_MAX 1.7976931348623159e+308 -#define DBL_MIN 2.2250738585072010e-308 extern int errno; #endif #ifndef HUGE_VAL #define HUGE_VAL HUGE #endif -#if !__STDC__ -#define const -#endif - /* Convert NPTR to a double. If ENDPTR is not NULL, a pointer to the character after the last one used in the number is put in *ENDPTR. */ double |