From 762b299e71ecdc46928d6104d9b6cef78c336833 Mon Sep 17 00:00:00 2001 From: Petri Lehtinen Date: Tue, 17 May 2016 11:31:47 +0300 Subject: [PATCH] Fix subnormal number parsing on mingw32 Patch by Blanca Elio Rosario. --- src/strconv.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/strconv.c b/src/strconv.c index c3563b9..8075481 100644 --- a/src/strconv.c +++ b/src/strconv.c @@ -3,6 +3,9 @@ #include #include #include +#ifdef __MINGW32__ +#undef __NO_ISOCEXT /* ensure stdlib.h will declare prototypes for mingw own 'strtod' replacement, called '__strtod' */ +#endif #include "jansson_private.h" #include "strbuffer.h" @@ -11,6 +14,10 @@ #include #endif +#ifdef __MINGW32__ +#define strtod __strtod +#endif + #if JSON_HAVE_LOCALECONV #include