diff options
author | Petri Lehtinen <petri.lehtinen@panic.fi> | 2016-05-17 11:31:47 +0300 |
---|---|---|
committer | Petri Lehtinen <petri.lehtinen@panic.fi> | 2016-05-17 11:31:55 +0300 |
commit | 762b299e71ecdc46928d6104d9b6cef78c336833 (patch) | |
tree | a6028a939fd9ab02a39c9e835439b4ded91eaf51 | |
parent | 013c3892c3b7c39516507838ababb4e9167cc65c (diff) | |
download | jansson-762b299e71ecdc46928d6104d9b6cef78c336833.zip jansson-762b299e71ecdc46928d6104d9b6cef78c336833.tar.gz jansson-762b299e71ecdc46928d6104d9b6cef78c336833.tar.bz2 |
Fix subnormal number parsing on mingw32
Patch by Blanca Elio Rosario.
-rw-r--r-- | src/strconv.c | 7 |
1 files changed, 7 insertions, 0 deletions
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 <stdio.h> #include <string.h> #include <math.h> +#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 <jansson_private_config.h> #endif +#ifdef __MINGW32__ +#define strtod __strtod +#endif + #if JSON_HAVE_LOCALECONV #include <locale.h> |