From b0bbffc318a316d814754917ee67147ff8c2282e Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Tue, 11 Aug 2020 19:56:06 -0400 Subject: pull in future definitions if building C89/C95 --- src/stdlib/strtod.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src') diff --git a/src/stdlib/strtod.c b/src/stdlib/strtod.c index ba6c9636..b866f47c 100644 --- a/src/stdlib/strtod.c +++ b/src/stdlib/strtod.c @@ -4,6 +4,14 @@ #include "float.h" #include "math.h" +#ifndef INFINITY +#include "../math/INFINITY.c" +#endif + +#ifndef NAN +#include "../math/NAN.c" +#endif + /** convert string to floating-point **/ double strtod(const char * restrict nptr, char ** restrict endptr) -- cgit v1.2.1