summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-04-29 17:06:33 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-04-29 17:06:33 +0900
commit5398a55462528f51a7c4332be06841b8f224ae93 (patch)
treebe577ae7205e975e5602607fdabe9bb4ff1f02f0 /src
parent3464116fc15ffb1e09e8ed41ba5731b678e6c75f (diff)
parent0406343f2b4a23c4631c11ed6cf1291b9eb2cf53 (diff)
downloadmruby-5398a55462528f51a7c4332be06841b8f224ae93.tar.gz
mruby-5398a55462528f51a7c4332be06841b8f224ae93.zip
Merge pull request #2154 from cremno/dbl_dig
remove `DBL_DIG` fallback definition
Diffstat (limited to 'src')
-rw-r--r--src/string.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/string.c b/src/string.c
index f9d0791bd..4af8503b9 100644
--- a/src/string.c
+++ b/src/string.c
@@ -5,6 +5,7 @@
*/
#include <ctype.h>
+#include <float.h>
#include <limits.h>
#include <stddef.h>
#include <stdlib.h>
@@ -2156,9 +2157,6 @@ mrb_cstr_to_dbl(mrb_state *mrb, const char * p, mrb_bool badcheck)
{
char *end;
double d;
-#if !defined(DBL_DIG)
-# define DBL_DIG 16
-#endif
enum {max_width = 20};
#define OutOfRange() (((w = end - p) > max_width) ? \