From 5b3a442d31299101e77bdeab01f7ea2a495a311d Mon Sep 17 00:00:00 2001 From: cremno Date: Tue, 29 Apr 2014 06:18:05 +0200 Subject: include the missing header for `DBL_DIG` --- src/string.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/string.c') diff --git a/src/string.c b/src/string.c index f9d0791bd..c243e224f 100644 --- a/src/string.c +++ b/src/string.c @@ -5,6 +5,7 @@ */ #include +#include #include #include #include -- cgit v1.2.3 From 0406343f2b4a23c4631c11ed6cf1291b9eb2cf53 Mon Sep 17 00:00:00 2001 From: cremno Date: Mon, 21 Apr 2014 23:21:07 +0200 Subject: remove `DBL_DIG` fallback definition --- src/string.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/string.c') diff --git a/src/string.c b/src/string.c index c243e224f..4af8503b9 100644 --- a/src/string.c +++ b/src/string.c @@ -2157,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) ? \ -- cgit v1.2.3