From 3f60f7e544656eb9f701ca0cf6c4358fe9ae9400 Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Wed, 18 Feb 2009 21:28:41 +0000 Subject: 2009-02-18 Jeff Johnston * libc/stdio/open_memstream.c (internal_open_memstream_r): Fix max buffer size to be in wchar_t units if wide == 1 is passed in. In this case, also initialize the first character of the buffer to be wide char null. (_open_wmemstream_r): Cast buf to be (char **) to avoid warning. * libc/stdlib/mbtowc_r.c (_mbtowc_r): Change all occurences of incrementing the size_t value n to first check that n is not already size_t -1. Fix some compiler warnings. * libc/stdlib/wcstod.c: Add includes for and . --- newlib/libc/stdlib/wcstod.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'newlib/libc/stdlib/wcstod.c') diff --git a/newlib/libc/stdlib/wcstod.c b/newlib/libc/stdlib/wcstod.c index 403415705..2d62a86af 100644 --- a/newlib/libc/stdlib/wcstod.c +++ b/newlib/libc/stdlib/wcstod.c @@ -117,6 +117,8 @@ Supporting OS subroutines required: <>, <>, <>, #include #include #include +#include +#include double _DEFUN (_wcstod_r, (ptr, nptr, endptr), -- cgit v1.2.3