summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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)