diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2009-02-18 21:28:41 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2009-02-18 21:28:41 +0000 |
commit | 3f60f7e544656eb9f701ca0cf6c4358fe9ae9400 (patch) | |
tree | 99ceaffb49a593c855b7b99ce2ceb39067493680 /newlib/libc/stdlib/wcstod.c | |
parent | 15fc34ac5ac00f4efb1ddfc98a623833a1aaddb2 (diff) | |
download | cygnal-3f60f7e544656eb9f701ca0cf6c4358fe9ae9400.tar.gz cygnal-3f60f7e544656eb9f701ca0cf6c4358fe9ae9400.tar.bz2 cygnal-3f60f7e544656eb9f701ca0cf6c4358fe9ae9400.zip |
2009-02-18 Jeff Johnston <jjohnstn@redhat.com>
* 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 <wctype.h> and <math.h>.
Diffstat (limited to 'newlib/libc/stdlib/wcstod.c')
-rw-r--r-- | newlib/libc/stdlib/wcstod.c | 2 |
1 files changed, 2 insertions, 0 deletions
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: <<close>>, <<fstat>>, <<isatty>>, #include <errno.h> #include <stdlib.h> #include <wchar.h> +#include <wctype.h> +#include <math.h> double _DEFUN (_wcstod_r, (ptr, nptr, endptr), |