summaryrefslogtreecommitdiff
path: root/marshal.c
diff options
context:
space:
mode:
Diffstat (limited to 'marshal.c')
-rw-r--r--marshal.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/marshal.c b/marshal.c
index 738f7edd62..24eacc4b13 100644
--- a/marshal.c
+++ b/marshal.c
@@ -15,10 +15,7 @@
#include "ruby.h"
#include "rubyio.h"
#include "st.h"
-
-#if !defined(atof) && !defined(HAVE_STDLIB_H)
-double strtod();
-#endif
+#include "util.h"
#define BITSPERSHORT (2*CHAR_BIT)
#define SHORTMASK ((1<<BITSPERSHORT)-1)
@@ -884,7 +881,6 @@ r_object(arg)
d = -1.0 / t;
}
else {
- /* xxx: should not use system's strtod(3) */
d = strtod(buf, 0);
}
v = rb_float_new(d);