From 0ae0f1b084a79054403a21ff278fa331b2ee02f9 Mon Sep 17 00:00:00 2001 From: Roger Sayle Date: Tue, 15 Apr 2003 03:35:47 +0000 Subject: argv.c: Use ANSI_PROTOTYPES instead of __STDC__. * argv.c: Use ANSI_PROTOTYPES instead of __STDC__. * memchr.c: Likewise. * strcasecmp.c: Likewise. * strncasecmp.c: Likewise. * strncmp.c: Likewise. * xatexit.c: Likewise. * xmalloc.c: Likewise. * copysign.c: Use traditional function declaration instead of DEFUN. * sigsetmask.c: Likewise. * memcmp.c: Both of the above, ANSI_PROTOTYPES and DEFUN. * memset.c: Likewise. * memcpy.c: ANSI_PROTOTYPES, DEFUN and prototype bcopy. * memmove.c: Likewise. From-SVN: r65619 --- libiberty/memcpy.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'libiberty/memcpy.c') diff --git a/libiberty/memcpy.c b/libiberty/memcpy.c index 0f2bac7..5eece7a 100644 --- a/libiberty/memcpy.c +++ b/libiberty/memcpy.c @@ -13,14 +13,19 @@ Copies @var{length} bytes from memory region @var{in} to region */ #include -#ifdef __STDC__ +#ifdef ANSI_PROTOTYPES #include #else #define size_t unsigned long #endif +void bcopy PARAMS((const void*, void*, size_t)); + PTR -DEFUN(memcpy, (out, in, length), PTR out AND const PTR in AND size_t length) +memcpy (out, in, length) + PTR out; + const PTR in; + size_t length; { bcopy(in, out, length); return out; -- cgit v1.1