diff options
Diffstat (limited to 'newlib/libc')
-rw-r--r-- | newlib/libc/posix/regexec.c | 2 | ||||
-rw-r--r-- | newlib/libc/stdio/vfscanf.c | 2 | ||||
-rw-r--r-- | newlib/libc/string/wcwidth.c | 3 |
3 files changed, 7 insertions, 0 deletions
diff --git a/newlib/libc/posix/regexec.c b/newlib/libc/posix/regexec.c index 957ce3b..98f5ef6 100644 --- a/newlib/libc/posix/regexec.c +++ b/newlib/libc/posix/regexec.c @@ -58,7 +58,9 @@ static char sccsid[] = "@(#)regexec.c 8.3 (Berkeley) 3/20/94"; #include "utils.h" #include "regex2.h" +#ifndef NDEBUG static int nope = 0; /* for use in asserts; shuts lint up */ +#endif /* macros for manipulating states, small version */ #define states long diff --git a/newlib/libc/stdio/vfscanf.c b/newlib/libc/stdio/vfscanf.c index 42ebacd..32a132a 100644 --- a/newlib/libc/stdio/vfscanf.c +++ b/newlib/libc/stdio/vfscanf.c @@ -453,7 +453,9 @@ _DEFUN(__SVFSCANF_R, (rptr, fp, fmt0, ap), wchar_t wc; /* wchar to use to read format string */ wchar_t *wcp; /* handy wide character pointer */ size_t mbslen; /* length of converted multibyte sequence */ +#ifdef _MB_CAPABLE mbstate_t state; /* value to keep track of multibyte state */ +#endif #define CCFN_PARAMS _PARAMS((struct _reent *, const char *, char **, int)) u_long (*ccfn)CCFN_PARAMS=0; /* conversion function (strtol/strtoul) */ diff --git a/newlib/libc/string/wcwidth.c b/newlib/libc/string/wcwidth.c index f825be6..ac5c47f 100644 --- a/newlib/libc/string/wcwidth.c +++ b/newlib/libc/string/wcwidth.c @@ -94,6 +94,9 @@ PORTABILITY #include <_ansi.h> #include <wchar.h> +#ifndef _MB_CAPABLE +#include <wctype.h> /* iswprint, iswcntrl */ +#endif #include "local.h" #ifdef _MB_CAPABLE |