summaryrefslogtreecommitdiffstats
path: root/lib/strtod.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/strtod.c')
-rw-r--r--lib/strtod.c21
1 files changed, 4 insertions, 17 deletions
diff --git a/lib/strtod.c b/lib/strtod.c
index 10edb5c..161f97a 100644
--- a/lib/strtod.c
+++ b/lib/strtod.c
@@ -1,4 +1,4 @@
1/* Copyright (C) 1991, 1992, 1997, 1999 Free Software Foundation, Inc. 1/* Copyright (C) 1991, 1992, 1997, 1999, 2003 Free Software Foundation, Inc.
2 2
3 This program is free software; you can redistribute it and/or modify 3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by 4 it under the terms of the GNU General Public License as published by
@@ -37,22 +37,9 @@ extern int errno;
37 37
38#include <math.h> 38#include <math.h>
39 39
40#if HAVE_FLOAT_H 40#include <float.h>
41# include <float.h> 41#include <stdlib.h>
42#else 42#include <string.h>
43# define DBL_MAX 1.7976931348623159e+308
44# define DBL_MIN 2.2250738585072010e-308
45#endif
46
47#if STDC_HEADERS
48# include <stdlib.h>
49# include <string.h>
50#else
51# define NULL 0
52# ifndef HUGE_VAL
53# define HUGE_VAL HUGE
54# endif
55#endif
56 43
57/* Convert NPTR to a double. If ENDPTR is not NULL, a pointer to the 44/* Convert NPTR to a double. If ENDPTR is not NULL, a pointer to the
58 character after the last one used in the number is put in *ENDPTR. */ 45 character after the last one used in the number is put in *ENDPTR. */