From f3e873f25016c24c4b4d77933183ecae36dcc29a Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Mon, 22 Aug 2011 16:49:37 +0000 Subject: [PATCH] =?UTF-8?q?2011-08-22=20=20Ralf=20Cors=C3=A9pius=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * libc/string/index.c: Include for "index". * libc/string/rindex.c: Include for "rindex". * libc/string/strcasecmp.c: Include for "strcasecmp". Don't include . * libc/string/strncasecmp.c: Include for "strncasecmp". Don't include . * libc/string/bzero.c: Include for "bzero". Don't include * libc/misc/ffs.c: Include for "ffs". Don't include <_ansi.h>. --- newlib/ChangeLog | 13 +++++++++++++ newlib/libc/misc/ffs.c | 2 +- newlib/libc/string/bzero.c | 2 +- newlib/libc/string/index.c | 1 + newlib/libc/string/rindex.c | 1 + newlib/libc/string/strcasecmp.c | 2 +- newlib/libc/string/strncasecmp.c | 2 +- 7 files changed, 19 insertions(+), 4 deletions(-) diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 41bf811ba..bb8988804 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,16 @@ +2011-08-22 Ralf Corsépius + + * libc/string/index.c: Include for "index". + * libc/string/rindex.c: Include for "rindex". + * libc/string/strcasecmp.c: Include for "strcasecmp". + Don't include . + * libc/string/strncasecmp.c: Include for "strncasecmp". + Don't include . + * libc/string/bzero.c: Include for "bzero". + Don't include + * libc/misc/ffs.c: Include for "ffs". + Don't include <_ansi.h>. + 2011-08-19 Ralf Corsépius * libc/sys/rtems/crt0.c: Rework RTEMS_STUB macro. diff --git a/newlib/libc/misc/ffs.c b/newlib/libc/misc/ffs.c index 292ffabee..e907bc911 100644 --- a/newlib/libc/misc/ffs.c +++ b/newlib/libc/misc/ffs.c @@ -24,7 +24,7 @@ PORTABILITY No supporting OS subroutines are required. */ -#include <_ansi.h> +#include int _DEFUN(ffs, (word), diff --git a/newlib/libc/string/bzero.c b/newlib/libc/string/bzero.c index 661285f7b..4db357438 100644 --- a/newlib/libc/string/bzero.c +++ b/newlib/libc/string/bzero.c @@ -30,7 +30,7 @@ Neither ANSI C nor the System V Interface Definition (Issue 2) require <> requires no supporting OS subroutines. */ -#include +#include _VOID _DEFUN (bzero, (b, length), diff --git a/newlib/libc/string/index.c b/newlib/libc/string/index.c index 6c165f952..6a707292d 100644 --- a/newlib/libc/string/index.c +++ b/newlib/libc/string/index.c @@ -34,6 +34,7 @@ QUICKREF */ #include +#include char * _DEFUN (index, (s, c), diff --git a/newlib/libc/string/rindex.c b/newlib/libc/string/rindex.c index 3c6dff909..1284bccbe 100644 --- a/newlib/libc/string/rindex.c +++ b/newlib/libc/string/rindex.c @@ -34,6 +34,7 @@ QUICKREF */ #include +#include char * _DEFUN (rindex, (s, c), diff --git a/newlib/libc/string/strcasecmp.c b/newlib/libc/string/strcasecmp.c index 73cf8661e..6f4fd3569 100644 --- a/newlib/libc/string/strcasecmp.c +++ b/newlib/libc/string/strcasecmp.c @@ -38,7 +38,7 @@ QUICKREF strcasecmp */ -#include +#include #include int diff --git a/newlib/libc/string/strncasecmp.c b/newlib/libc/string/strncasecmp.c index 6909018a8..922c76a5f 100644 --- a/newlib/libc/string/strncasecmp.c +++ b/newlib/libc/string/strncasecmp.c @@ -40,7 +40,7 @@ QUICKREF strncasecmp */ -#include +#include #include int