summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2020-08-11 19:56:06 -0400
committerJakob Kaivo <jkk@ung.org>2020-08-11 19:56:06 -0400
commitb0bbffc318a316d814754917ee67147ff8c2282e (patch)
tree42926b7f7ab40d5a769dc32af06b64fb17e7a1e6 /src
parent829e76551bc1d5489df5fe9192daa0d63c917f07 (diff)
pull in future definitions if building C89/C95
Diffstat (limited to 'src')
-rw-r--r--src/stdlib/strtod.c8
1 files changed, 8 insertions, 0 deletions
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)