summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib/atof.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/stdlib/atof.c')
-rw-r--r--lib/libc/stdlib/atof.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/stdlib/atof.c b/lib/libc/stdlib/atof.c
index 5f5fc91f..aff6634b 100644
--- a/lib/libc/stdlib/atof.c
+++ b/lib/libc/stdlib/atof.c
@@ -1,4 +1,6 @@
-#include <stdlib.h>
+#include "stddef.h" // for NULL
+
+#include <stdlib.h> // for strtod, atof
double atof(const char *str)
{