summaryrefslogtreecommitdiff
path: root/strings/strtod.c
diff options
context:
space:
mode:
Diffstat (limited to 'strings/strtod.c')
-rw-r--r--strings/strtod.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/strings/strtod.c b/strings/strtod.c
index 92a4700cfc4..aa0f7aa4336 100644
--- a/strings/strtod.c
+++ b/strings/strtod.c
@@ -26,9 +26,13 @@
*/
-#include "my_base.h"
+#include "my_base.h" /* Includes errno.h */
#include "m_ctype.h"
+#ifndef EOVERFLOW
+#define EOVERFLOW 84
+#endif
+
static double scaler10[] = {
1.0, 1e10, 1e20, 1e30, 1e40, 1e50, 1e60, 1e70, 1e80, 1e90
};
@@ -37,10 +41,6 @@ static double scaler1[] = {
};
-#ifndef HUGE_VAL /* Should be +Infinitive */
-#define HUGE_VAL DBL_MAX
-#endif
-
double my_strtod(const char *str, char **end)
{
double result= 0.0;