From 4f3305c50683056cad28512f87fe9a9af2a07a0b Mon Sep 17 00:00:00 2001 From: AllenX2018 Date: Tue, 8 Oct 2019 19:16:50 +0800 Subject: [PATCH 1/2] fix issue #441 It already has "strtod" function in stdlib.h and because __USE_MINGW_ANSI_STDIO is desperated --- src/strconv.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/strconv.c b/src/strconv.c index 8075481..fd6e403 100644 --- a/src/strconv.c +++ b/src/strconv.c @@ -14,10 +14,6 @@ #include #endif -#ifdef __MINGW32__ -#define strtod __strtod -#endif - #if JSON_HAVE_LOCALECONV #include From c3958a326ca55db1eb750cd18439fcedf90262e9 Mon Sep 17 00:00:00 2001 From: willson-chen Date: Mon, 21 Oct 2019 11:13:39 +0800 Subject: [PATCH 2/2] remove undef __NO_ISOCEXT for strtod compatiblity --- src/strconv.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/strconv.c b/src/strconv.c index fd6e403..c3563b9 100644 --- a/src/strconv.c +++ b/src/strconv.c @@ -3,9 +3,6 @@ #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"