aboutsummaryrefslogtreecommitdiff
path: root/libiberty/memcpy.c
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2003-04-15 03:53:53 +0000
committerDJ Delorie <dj@redhat.com>2003-04-15 03:53:53 +0000
commit7ec2fc6f764fef9000cc768516df04035c85ebac (patch)
treeb85799f938b5659b5ce403f577ee4d4403321f53 /libiberty/memcpy.c
parenteec539c7798006fabf0ceeeac3e64593daed85a7 (diff)
downloadgdb-7ec2fc6f764fef9000cc768516df04035c85ebac.zip
gdb-7ec2fc6f764fef9000cc768516df04035c85ebac.tar.gz
gdb-7ec2fc6f764fef9000cc768516df04035c85ebac.tar.bz2
merge from gcc
Diffstat (limited to 'libiberty/memcpy.c')
-rw-r--r--libiberty/memcpy.c9
1 files changed, 7 insertions, 2 deletions
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 <ansidecl.h>
-#ifdef __STDC__
+#ifdef ANSI_PROTOTYPES
#include <stddef.h>
#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;