Commit 5398a554 authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto

Merge pull request #2154 from cremno/dbl_dig

remove `DBL_DIG` fallback definition
parents 3464116f 0406343f
......@@ -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) ? \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment