summaryrefslogtreecommitdiffstats
path: root/newlib/libc/stdlib
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/stdlib')
-rw-r--r--newlib/libc/stdlib/strtod.c1
-rw-r--r--newlib/libc/stdlib/wcstoul.c3
2 files changed, 3 insertions, 1 deletions
diff --git a/newlib/libc/stdlib/strtod.c b/newlib/libc/stdlib/strtod.c
index 703fbce1d..fb4caf86f 100644
--- a/newlib/libc/stdlib/strtod.c
+++ b/newlib/libc/stdlib/strtod.c
@@ -112,6 +112,7 @@ THIS SOFTWARE.
#include <_ansi.h>
#include <errno.h>
+#include <stdlib.h>
#include <string.h>
#include "mprec.h"
#include "gdtoa.h"
diff --git a/newlib/libc/stdlib/wcstoul.c b/newlib/libc/stdlib/wcstoul.c
index 0a06e861c..44dfca399 100644
--- a/newlib/libc/stdlib/wcstoul.c
+++ b/newlib/libc/stdlib/wcstoul.c
@@ -16,7 +16,7 @@ ANSI_SYNOPSIS
wchar_t **<[ptr]>, int <[base]>);
TRAD_SYNOPSIS
- #include <stdlib.h>
+ #include <wchar.h>
unsigned long wcstoul(<[s]>, <[ptr]>, <[base]>)
wchar_t *<[s]>;
wchar_t **<[ptr]>;
@@ -121,6 +121,7 @@ PORTABILITY
#include <_ansi.h>
#include <limits.h>
#include <wctype.h>
+#include <wchar.h>
#include <errno.h>
#include <stdlib.h>
#include <reent.h>